[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:

After importing the code of template shown above:

Answers (3)
If you want to disable the component from the parser you can do this:
editor.DomComponents.addType('link', {
isComponent: () => false,
})
@artf no, If I do in such way the link becomes a text. I want grape js not to wrap it with any block
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.
Issue #2455
[QUESTION] How can I remove link, button components from newsletter plugin?
how can i remove the link, button blocks from the section components because there is a conflict between it and ckeditor toolbar, I can cre...
Issue #1341
[Question] How to work with Custom Components
Hello, I have some questions and issues about and with the grapes editorProblem 1 In a component, which class is there extended? Is it real...
Issue #2032
[QUESTION] How to remove unnecessary component?
@artf you closed my issue before I approved that the answer is correct. I want grape js not to wrap the link with any block(link, text etc....
Issue #3119
[QUESTION] How to create custom block made of grapesjs components?
Hi, i want to have custom blocks made of grapesjs components. I found solution how to add components: https://github.com/artf/grapesjs/issu...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.