Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
3 Replies

Avatar

Employee Advisor

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.

Avatar

Correct answer by
Employee Advisor