Issue #1699💬 AnsweredOpened January 2, 2019by narendravaghela0 reactions

Link elements are not copyable/deletable

Quick answerby narendravaghela

Can someone please help on this issue?

Read full answer below ↓

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, 2019

Can someone please help on this issue?

artfJanuary 5, 2019

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, 2019

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.