Issue #5657๐Ÿ’ฌ AnsweredOpened Jan 31, 2024by leo-budgetsimple0 reactions

HTML Comment Tags disable text edit

Quick answerby GJS Helper

The issue you've encountered where an HTML comment tag like <!-- --> disables text editing in GrapesJS is a known behavior related to how browsers handle contenteditable elements and how GrapesJS's text editor component initializes. While not strictly a bug in GrapesJS's core, it's an interaction that can lead to unex...

Read full answer below โ†“

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome 120

Reproducible demo link

https://jsfiddle.net/btmry08e/

Describe the bug

How to reproduce the bug?

  1. Init a grapesjs editor with this html:

<div><!-- -->Hello World</div>

What is the expected behavior? To be able to edit the text

What is the current behavior? Unable to edit the text

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (1)

GJS Helperโ€ข May 17, 2026

The issue you've encountered where an HTML comment tag like <!-- --> disables text editing in GrapesJS is a known behavior related to how browsers handle contenteditable elements and how GrapesJS's text editor component initializes. While not strictly a bug in GrapesJS's core, it's an interaction t...

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.