[BUG] built-in RTE reset styles on rte:disable
Question
Hello, @artf , I've catch a bug at built-in RTE:
- added standart email text element with a red styled tag a inside:
<div>
<span>
Lorem ipsum dolor sit amet
<a href="https://google.com" target="_blank" style="color: #f00">red link</a>
</span>
</div>
- enable rte by doubleclick on span element
- disable rte by deselecting element
- the link is blue now
It adds "-2" to link's id after every time I deselect it. I think the problem starts at dom_components/view/ComponentView.js:318, updateContent function. GrapesJS 0.16.4
Answers (3)
Hey, is there anybody?
@h3llomoto PRs are welcome buddy
Fixed and ready for the next release #3069
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2807
[Bug]: Starting editor "fromElement" creates components inside tag with data-gjs-type="text"
Hi, I'm currently trying to start the editor "fromElement", setting the following html inside the container: But when executed, grapesjs cr...
Issue #1394
[Bug]: Pasting multiple paragraphs aren't editable until Grapes reloads
https://grapesjs.com/demo.htmlIn the double click into the text "All text blocks could..." to trigger editing mode.Paste this text in: The...
Issue #1664
Span element gets stripped from editing
We have added button on RTE toolbar so that we can put selected text inside <span> Now, that functionality worked perfectly fine in our pre...
Issue #4817
BUG: Can't edit text node inside div, if div has inside tag p > span.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome Version 108.0.5359.125, Mozilla 107.0...
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.