Issue #1699Opened January 2, 2019by narendravaghela0 reactions

[BUG] Link elements are not copyable/deletable

Question

In the editor, if we have link element with some classes, the editor does not allow to copy/delete the element.

GrapesJS version: v0.14.50

Steps to reproduce:

  1. Open https://grapesjs.com/demo.html
  2. Import following simple link tag
<a href="#" class="btn btn-lg d-block d-lg-inline-block">Get Started</a>
  1. Select it and click on copy icon or delete icon from the toolbar

@artf Could you please suggest on this? We are running a live application and it's bit important to make links editable.

Answers (3)

narendravaghelaJanuary 4, 20190 reactions

Can someone please help on this issue?

artfJanuary 5, 20190 reactions

For now, init the editor with this option:

grapesjs.init({
	...
	canvas: {
		...
		notTextable: ['button', 'a', 'input[type=checkbox]', 'input[type=radio]'],
	}
})

in the next release I'll adjust the default value

narendravaghelaJanuary 5, 20190 reactions

It is working now. Thank you @artf

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.