RTE style - stylized content is enclosed in span tags. how to remove that span tag? | Community
Skip to main content
November 17, 2022
Solved

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

  • November 17, 2022
  • 1 reply
  • 1745 views

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.

1 reply

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.

Mani7Author
November 17, 2022

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