Issue #3615Opened July 13, 2021by onmagic0 reactions

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.

Snap77

Answers (3)

v-pasha2August 3, 20210 reactions

Did you get a solution on this ?

v-pasha2August 3, 20210 reactions

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>
v-pasha2August 6, 20210 reactions

@artf could you please check on this or any-work around for this ?

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.