You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug, merging the current DOM with components requires a bit more effort.
There is already a similar API you can use or re-implement with your own needs (using component definition instead of HTML string)
* #5650 - Fix inserting component using text from the view rather than the model
* #5650 - Updated code to be better based on PR feedback
* #5650 - Made the content replacement controlled by property on the options object
---------
Co-authored-by: Wayne Mather <[email protected]>
GrapesJS version
What browser are you using?
Edge 121.0.2277.83, Firefox 122
Reproducible demo link
https://jsfiddle.net/50mga1t7/1/
Describe the bug
How to reproduce the bug?
What is the expected behavior?
The textnode should show the current text as being edited and the new inserted text
What is the current behavior?
The new text is inserted using the text from the model rather than the current view
Code of Conduct
The text was updated successfully, but these errors were encountered: