BUG: SVG text textcontent not updated when calling getHtml on editor
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome v96
Reproducible demo link
https://jsfiddle.net/1hrLxdba/30/
Describe the bug
How to reproduce the bug?
- Drag a svg text block to the canvas.
- Change it's content via the svg-text trait
- Click on print html
What is the expected behavior? The editor html should be printed with the text element's text content changed. What is the current behavior? The editor html is printed without the changes that were applied
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (1)
You have to update the Component content, not the DOM
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4015
BUG: Drag and drop not working well in case of RTL
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v96 Reproducible demo link https://...
Issue #5888
BUG: Cannot edit component content even with editable property set to true
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome V124 Reproducible demo link https:/...
Issue #3873
BUG: Duplicated video block when re-attaching GrapesJs editor to document
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v94 Reproducible demo link https://...
Issue #6409
BUG: Cannot drag to move components on mobile
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v133 Reproducible demo link https:/...
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.