Closed varadero closed 2 years ago
I can confirm that this problem occurs only with Grapesjs 0.18.3 - I downgraded to 0.18.2 and the problem does not occur. Older versions are OK too.
@artf The problem is relevant to the latest version. (v0.19.4)
The bug occurs if you copy and paste a nested component while editing text. A regular paste (cmd + v) copies all html, including id, and after removing focus, html with identical id is deleted.
I can confirm that this problem occurs only with Grapesjs 0.18.3 - I downgraded to 0.18.2 and the problem does not occur. Older versions are OK too.
in version 0.18.2, nested components were not created inside the text.
@artf +1
@artf The problem is relevant to the latest version. (v0.19.4)
The bug occurs if you copy and paste a nested component while editing text. A regular paste (cmd + v) copies all html, including id, and after removing focus, html with identical id is deleted.
GrapesJS version
What browser are you using?
Chrome 99
Reproducible demo link
https://grapesjs.com/demo.html
Describe the bug
How to reproduce the bug?
consecterur
(other word would work too)CTRL+V
to paste the textLine 2
and notice it is its ownText
elementLine 2
just before the2
CTRL+V
to paste the same 2 lines textWhat is the expected behavior? The text that was pasted the second time should be kept where it was pasted
What is the current behavior? The text that was pasted the second time disappears
If is necessary to execute some code in order to reproduce the bug, paste it here below:
Screenshots of the steps:
consecterur
and press CTRL+V to paste the 3 lines and click outside to commit the changes:Code of Conduct