RTE generate tag span after remove `bold`, `italic` etc
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
Read full answer below ↓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 (2)
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...
Thanks for reporting this, @zgeist. Thanks for sharing your report about RTE generate tag span after remove bold, italic etc. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddle) Your GrapesJS version number Browser and OS informati...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5442
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 #4558
Grapesjs goes out of memory Issue
While apply bold ,italic, underline continuously to a text . when once opened layer manager only its happened And its works fine only in V0...
Issue #3604
editor.on('component:update:content', model => { }}) not work in some cause
if the user remove all text from a element and click some where else . then again try to select empty element he is not able to select it a...
Issue #6654
the rich-text editor cannot be activated
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? chrome v91 Reproducible demo link https://...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Related tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.