Issue #2707💬 AnsweredOpened April 8, 2020by h3llomoto0 reactions

Built-in RTE reset styles on rte:disable

快速解答by h3llomoto

Hey, is there anybody?

Read full answer below ↓

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)

h3llomotoApril 30, 2020

Hey, is there anybody?

artfMay 4, 2020

@h3llomoto PRs are welcome buddy

artfOctober 16, 2020

Fixed and ready for the next release #3069

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.