Skip to main content
November 17, 2022
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
Adobe Employee
Adobe Employee
November 17, 2022

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
November 17, 2022

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

Translate