Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Remove Span element from RTE component while dragging text

Avatar

Avatar
Validate 1
Level 1
yashaswidotiya
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
yashaswidotiya
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
yashaswidotiya
Level 1

09-06-2021

Hi Members,

 

We are facing an issue where <span> element is getting added to text with its own styling while dragging text within Rich Text (RTE) component. 

 

In the below example, when I drag "world" to the end of line, span element got added.

 

BEFORE:

<p>world&nbsp;world&nbsp;&nbsp;
<a data-popemb="Pop-up" class="content-popup" href="/content/we-retail.html" target="_self" style="font-size: 0.955555em; background-color: rgb(255,255,255);">hello</a>
</p>

 

 

 

 

AFTER:

<p>world&nbsp;&nbsp;
<a data-popemb="Pop-up" class="content-popup" href="/content/we-retail.html" target="_self" style="font-size: 0.955555em; background-color: rgb(255,255,255);">hello</a>
<span style="font-size: 12.4222px;">world&nbsp;</span></p>

 

Could you please help in finding the root cause of the issue ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 5
Ritesh_M
Level 5

Likes

76 likes

Total Posts

67 posts

Correct Reply

20 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 5
Ritesh_M
Level 5

Likes

76 likes

Total Posts

67 posts

Correct Reply

20 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 5

10-06-2021

Hi @yashaswidotiya ,

 

If I have understood your requirement correctly then you can use context='html' to output markup. Like below-

 

${properties.title @context='html'}

 

Reference-

https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/expression-language.html?la...