AddType in domcomponent for html conditionals doesn't work grapesjs 0.10.7 version
Hi @alperenuzun we don't support old versions so, please try to update to the latest and check if everything works. By the way, when you add new components be sure to do it from a plugin.
Read full answer below ↓Question
Hi Artur, First of all, thank you for sharing such a great project :) I want to tell you a problem that I have experienced. You commented below code for addType in #208 issue. I was using grapesjs - v0.5.41 before using grapesjs - v0.10.7 and i wanted to add category structure for blocks in grapesjs newsletter plugin. And then, i realize that grapesjs - v0.10.7 already contained what i want. So, category structure is working very well but, above code doesn't work with grapesjs - v0.10.7 and doesn't include conditional comments. However, it worked with v0.5.41. What is the reason for this? Wha...
Answers (3)
Hi @alperenuzun we don't support old versions so, please try to update to the latest and check if everything works. By the way, when you add new components be sure to do it from a plugin.
"Plugin" was the answer for me :) In old versions it worked without using plugin. Now, it's working with plugin. Thank you very much for your help.
Hi @artf I've got another question. Conditional comments are working well but don't look correct on design. This is the code that i used the conditional comments in: This is the design that i used conditional comments in: This is the code that i didn't use conditional comments in: This is the desig...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1210
[Question] Replace Devices icon ASP.net / Javascript
Bonjour, I want replace icon for selected devices like in preset-webpage but i don't understand why this code doesn't work and nothing appe...
Issue #1404
addType in domcomponent for html conditionals generates a <div> in visualization
I have followed the instructions from issues #37, #787 , #208 , #1254 The comments are there in the HTML, however an "\<div\>" element is c...
Issue #1868
How to enable functionality only for specific image component, not all
I've enabled the fa fa-pencil icon into my image components, but I want it to be enabled only in specific image components, not all of them...
Issue #1499
[Question] Is it possible to perform dom manipulation through the block's contents script?
Hey! First of all thank you so much to build such a great and versatile tool. Is it possible that I can manipulate the dom elements of the...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.