BUG: RTE generate tag span after remove `bold`, `italic` etc
Question
Place text block
Edit text, apply bold or italic
Deselect text block
Select again and remove bold
Open source code, you should see span tags

Answers (1)
Looks like an issue with the underlying browser API ie. Document.execCommand() so I'm not sure this can be solved, says here it has been deprecated but there's really no alternative, anyways the removeFormat command seems to work without leaving any spans. However you can still use a 3rd party RTE like CKE
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5442
BUG: After applying the text color not able to set the background color
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link https://jsfi...
Issue #3579
BUG: RTE misplaced when opened right after dropping `activeOnRender` component
Version: 0.17.4 Are you able to reproduce the bug from the demo?[x] Yes[ ] No Steps to reproduce:Go to the demoDrop a "Text" block inside t...
Issue #2707
[BUG] built-in RTE reset styles on rte:disable
Hello, @artf , I've catch a bug at built-in RTE:added standart email text element with a red styled tag a inside:enable rte by doubleclick...
Issue #2878
[Bug] its not possible to make part of H1 non-bold
Steps:open newsletter demo at https://grapesjs.com/demo-newsletter-editor.htmlclean the canvasdrop "Text Section"select any word within H1,...
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.