Preventing Text Editor from replacement tags such as i with em

Avatar

Avatar
Ignite 3
Level 4
Codelime
Level 4

Likes

45 likes

Total Posts

66 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Boost 25
Applaud 5
Give Back 25
Validate 1
View profile

Avatar
Ignite 3
Level 4
Codelime
Level 4

Likes

45 likes

Total Posts

66 posts

Correct reply

0 solutions
Top badges earned
Ignite 3
Boost 25
Applaud 5
Give Back 25
Validate 1
View profile
Codelime
Level 4

09-04-2021

How can I configure the Text Editor so that it doesn't replace tags such as <i> with <em>? I tried changing the following in the /components/overlays/text/text.html file and then deploying using Maven in Eclipse, but it didn't work: 

Before
${text.text @ context='html'}

After

${text.text @ context='unsafe'}

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

594 likes

Total Posts

705 posts

Correct reply

208 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

594 likes

Total Posts

705 posts

Correct reply

208 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile
asutosh_jena
Level 10

09-04-2021

Hi @Codelime 

You will need to convert these tags into the corresponding semantic tags in RTE.

Please use the below article which has detailed steps to make it work:

http://www.sgaemsolutions.com/2019/10/accessibility-in-aem-bold-vs-strong-and.html

https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/rte-accessibl...

 

Hope this helps!

Thanks!

Answers (0)