Issue #5888πŸ’¬ AnsweredOpened May 16, 2024by Dobby851 reactions

Cannot edit component content even with editable property set to true

Quick answerby Dobby85❀ 1

By looking into the code, I saw that to get the RTE functionnality, our new component has to extend ComponentTextView. My initial issue was that I did something like : And it tooks the view of my baseStructure and not the text component. I will try to find a workaround for that by don't extending my baseStructure view.

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome V124 Reproducible demo link https://jsfiddle.net/ycvz2gno/7/ Describe the bug How to reproduce the bug?Put a text block in the canvasDouble click on the content inside the text blockThe content cannot be edited What is the expected behavior? It should open the RTE so we could edit the text inside the component What is the current behavior? Nothing happened, the component cannot be edited ```Code of Conduct [X] I agree to follow this project's Code of Conduct

Answers (2)

Dobby85β€’ May 16, 2024

By looking into the code, I saw that to get the RTE functionnality, our new component has to extend ComponentTextView. My initial issue was that I did something like : And it tooks the view of my baseStructure and not the text component. I will try to find a workaround for that by don't extending m...

GJS Helperβ€’ May 17, 2026

The issue you're encountering where text components loaded via fromElement: true are not editable, even with data-gjs-type="text" and editable="true" in the HTML, stems from how GrapesJS handles existing DOM elements during initialization. Root Cause When GrapesJS initializes with fromElement: true...

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.