Skip to content

[BUG] Link elements are not copyable/deletable #1699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
narendravaghela opened this issue Jan 2, 2019 · 4 comments
Closed

[BUG] Link elements are not copyable/deletable #1699

narendravaghela opened this issue Jan 2, 2019 · 4 comments
Labels

Comments

@narendravaghela
Copy link

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.

@narendravaghela
Copy link
Author

Can someone please help on this issue?

@artf
Copy link
Member

artf commented Jan 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

@artf artf closed this as completed Jan 5, 2019
@narendravaghela
Copy link
Author

It is working now. Thank you @artf

@lock
Copy link

lock bot commented Jan 5, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the outdated label Jan 5, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants