Issue #1749πŸ’¬ AnsweredOpened January 24, 2019by aaronseanph1 reactions

Conditional comments getting removed on latest version

Quick answerby artf❀ 1

ok now I get it... you were talking about comments in the canvas... Well, to be honest, I don't think you need to care about what you see in the canvas (the important part indeed is in toHTML of the comment component).In any case, you can always try to tweak the view to obtain what you need

Read full answer below ↓

Question

@artf comment in #208 this is working in older versions but not in 0.14.50. Is there any work around available? I've tried adding it in plugins as per #1254 but no luck. Thanks!

Answers (3)

artfβ€’ February 7, 2019

ok now I get it... you were talking about comments in the canvas... Well, to be honest, I don't think you need to care about what you see in the canvas (the important part indeed is in toHTML of the comment component).In any case, you can always try to tweak the view to obtain what you need

artfβ€’ January 27, 2019

It works for me with the latest version https://jsfiddle.net/06L5ng19 Next time, create a reproducible demo before opening a BUG issue, thanks...

aaronseanphβ€’ January 28, 2019

Hi @artf , thanks for your time. The issue is happening when adding comments to blocks html. I've updated your code and added some test block with comments inside it: https://jsfiddle.net/orn4jqw7/1/

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 β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.