Issue #2016💬 AnsweredOpened May 14, 2019by yrbn0 reactions

How to remove unnecessary component?

快速解答by artf

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

Read full answer below ↓

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

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

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

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

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

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.