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

Issues with source-edit mode in RTE

Avatar

Avatar
Validate 10
Level 2
v1101
Level 2

Likes

4 likes

Total Posts

150 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 10
Level 2
v1101
Level 2

Likes

4 likes

Total Posts

150 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
v1101
Level 2

21-12-2020

Hello Community - I have an issue related to the content(HTML/Text) added in RTE source-edit mode is lost. Once the content is added in RTE and click "Done". I have verified the below. Can someone tell me what is causing the issue?

 

Step 1: Checked content node in CRX/DE and found that the saved changes is not there.
Step 2: Which means it is not related to XSS issue. If it is an XSS issue, the saved HTML will be captured in CRX/DE and it will be removed by XSS.
Step 3: Moreover, this is not a consistent issue. Sometimes, it is working and sometimes it doesn't.
Step 4: Verified the logs once the content is authored in RTE but no issues found in logs when the content is not saved in RTE.
Step 5: No issues found in browser console.

Step 6: Tried with various user accounts including admin but no luck.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Level 4
praveenjain
Level 4

Likes

37 likes

Total Posts

36 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Give Back 5
Level 4
praveenjain
Level 4

Likes

37 likes

Total Posts

36 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
praveenjain
Level 4

24-12-2020

Can you check once if anything missed in RTE code.

 

Below is the sample code of RTE that you can give a try

 

<headline jcr:primaryType="nt:unstructured" sling:resourceType="/libs/cq/gui/components/authoring/dialog/richtext" fieldDescription="Enter Headline Text" fieldLabel="Headline" name="./headline" useFixedInlineToolbar="{Boolean}true">
<rtePlugins jcr:primaryType="nt:unstructured">
<subsuperscript
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
<uiSettings jcr:primaryType="nt:unstructured">
<cui jcr:primaryType="nt:unstructured">
<inline
jcr:primaryType="nt:unstructured"
toolbar="[#format]">
<popovers jcr:primaryType="nt:unstructured">
<format
jcr:primaryType="nt:unstructured"
items="[subsuperscript#superscript]"
ref="format"/>
</popovers>
</inline>
</cui>
</uiSettings>
</headline>

 

Regards

Praveen

Answers (2)

Answers (2)

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
kunal23
MVP

21-12-2020

Is the HTML well formed and balanced ?Check if all the tags are opened and closed correctly. What version of AEM you are running ? Also, try this operation in different browsers as well. 

If there are no custom HTML tags then it could be related to attributes of tag as well. Certain tags or attributes might get removed because of antisamy rules. You can find more details here - https://helpx.adobe.com/experience-manager/kb/target-attribute-issue-tag.html 

Avatar

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

243 likes

Total Posts

409 posts

Correct Reply

104 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile

Avatar
Affirm 100
MVP
shelly-goel
MVP

Likes

243 likes

Total Posts

409 posts

Correct Reply

104 solutions
Top badges earned
Affirm 100
Give Back 25
Ignite 3
Give Back 10
Validate 1
View profile
shelly-goel
MVP

21-12-2020

@v1101 

Are you using any custom html tags/ attributes in source edit? Do you see the content in the UI after closing the edit dialog?

This would mostly happen if you're trying to add some custom (not allowed) html tags/ attributes.