RTE style - stylized content is enclosed in span tags. how to remove that span tag? | Community
Skip to main content
New Participant
Nov 17, 2022 9:14 AM UTC
Solved

RTE style - stylized content is enclosed in span tags. how to remove that span tag?

Hi community,

 

Is there any way to remove the span tag when using RTE styles? Also need to add the class name to custom tag.

 

Current:

<h2> <span class="some-class"> some text </span></h2>

Expected:

<h2 class="some-class"> some text </h2>

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Mohit_KBansal
Employee
Nov 17, 2022 10:33 AM UTC

OOB RTE use span tag to add custom styles. If you want to avoid custom tags, you have to write a new plugin in RTE.

Translate
Mani7Author
New Participant
Nov 17, 2022 10:39 AM UTC

Thanks @mohit_kbansal . Can you please give me an example. 

Translate