Issue #2016Opened May 14, 2019by yrbn0 reactions

[QUESTION] How to remove unnecessary component?

Question

@artf I use CKEditor and it's link plugin can't work with 'Link' blocks. How can I prevent creating 'Link' component when grapesjs newsletter is rendering? Or prevent link wrapping on chosen class. When adding a link: OnPaste 20190514-165727

After importing the code of template shown above: OnPaste 20190514-165801

Answers (3)

artfMay 19, 20190 reactions

If you want to disable the component from the parser you can do this:

editor.DomComponents.addType('link', {
	isComponent: () => false,
})
yrbnMay 22, 20190 reactions

@artf no, If I do in such way the link becomes a text. I want grape js not to wrap it with any block

artfMay 28, 20190 reactions

I want grape js not to wrap it with any block

Which block are you talking about?

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.