[BUG] Set selected content is not affecting editor.getHtml() completly
Question
When I use editor.getSelected().set('content', 'somethig'), theoretically it changes value correctly as I see in editor, but when I call editor.getHtml() or I enable autosave (that probably call getHtml()), it is showing "<div class="c891">somethingInsert your text here</div>". It is always incrementing the text.
Edit:
In fact, only "Insert your text here" is being fixed in every block's change.
Answers (2)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1511
[QUESTION] Change the html content of the selected component
I am trying to replace the html of the basic Text componet using the below code const component = editor.getSelected(); component.set('cont...
Issue #820
[QUESTION] Change and get value of editor.getSelected() block
How can I change and get the content of current selected block?
Issue #1834
[BUG]: background image for wrapper doesn't work if custom styling properties are selected
When editor is initialized with custom styling props defined for wrapper, background image is not set to wrapper. It is set correctly if ed...
Issue #1092
[BUG]traits and storage trigger
Hey, maybe it's not bug, i'm not sure. I have traits with changeProp: true field. When I change the value of trait by UI, model is changed...
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.