Issue #3423💬 AnsweredOpened April 29, 2021by zgeist1 reactions

RTE generate tag span after remove `bold`, `italic` etc

Quick answerby Ju99ernaut1

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 1113

Answers (2)

Ju99ernautMay 7, 2021

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

GJSBlockMay 17, 2026

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.

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.