BUG: text in text component cannot update , cannot get final result from toHTML
Question
it is text component,
if select body, the text will correct save/apply/store in component toHTML method,
if just updating text, but not leave the text component, just click save
then use "editor.getHTML()", the result is not updated.

Answers (3)
Did you get a solution on this ?
We are facing below issue with version "0.17.19" where as on version "0.14.62" its was working fine.
We were trying inline editing experience, So when we check the component.getEl() function it returns the updated text for component where as if we use component.toHTML() it returns old value not the updated value. While focus is still on text component.
reference HTML.
toHTML() out put
<div id="i8h4tu"><p id=\"iwcefk\">This website uses sample data for illustration purposes. You can build pages using multiple templates available.</p></div>getEl() - OutPut
<div id="i8h4tu"><p id="iwcefk">This website uses sample data for illustration purposes. You can build pages using multiple templates available. Text Updated</p></div>@artf could you please check on this or any-work around for this ?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2953
BUG: Error when navigating out from Grapes with something selected.
Hey @artf, Steps: Open Canvas with GrapesJS, select any of the components, then click on Go to Random, I get an error that says "Cannot rea...
Issue #3604
editor.on('component:update:content', model => { }}) not work in some cause
if the user remove all text from a element and click some where else . then again try to select empty element he is not able to select it a...
Issue #2771
[BUG] component with textable:1 not working since version 0.16.12
Hello, I've just updated to the lasted version 0.16.12 and have a bug when trying to move a component that has the property textable:1 into...
Issue #1599
[Bug] Drag and drop rendering improperly
Version 0.14.40Click "Continue"Select "You have successfully signed up!" header (sqh-header)Drag sqh-header block between "Give $10 and Get...
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.