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

AEM 6.4 Richtext authored Content adding "\r\n" for new line character.

Avatar

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
vipins5188
Level 2

21-11-2018

Hi All,

Currently we are converting all classic ui component to touch ui component.And we are serving JSON response for all authored content using custom json service.

We have noticed one issue/observation with respect to content authored using RTE. When we try to get json response for RTE content we are getting "\r\n" for new line character.This was not happening in classic UI RTE. In older version it only adds "\n"  for new line character.My concern is why it is adding that extra "\r" with new RTE. Does new RTE "\n" is being replaced by "\r\n"??

Tested this with fresh adobe instance with no custom project code to check if our custom code is introducing this issue but it is available with OOTB RTE.

Using sling:resourceType = "cq/gui/components/authoring/dialog/richtext".

You can reproduce this scenario by creating one RTE component and access json

Please refer below image for RTE component ,json response and jcr content saved data

RTE Touch Box.JPG

RTE jcr value.JPG

RTE json response.JPG

Let me know if more details needed.

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar
Level 1
manojinim169649
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
manojinim169649
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
manojinim169649
Level 1

19-04-2021

Hi,

 

I am also facing the same issue in Touch UI RTE component. Is there any solution for this issue?

Avatar

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
vipins5188
Level 2

05-12-2018

Anyone any update ??

Avatar

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
vipins5188
Level 2

27-11-2018

smacdonald2008​ Did you get a chance to look into above issue ??

Avatar

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
vipins5188
Level 2

Likes

8 likes

Total Posts

41 posts

Correct Reply

7 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
vipins5188
Level 2

22-11-2018

Thanks smacdonald2008​ , please check and keep us posted.

Since we are serving JSON endpoints to our consumer heavily, do you think if this is part of Grantie RTE functionality, would it impact on consumer side like earlier for new line "\n" and now "\r\n".

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

22-11-2018

I suppose in Granite RTE - this is part of the functionality. I am not aware of any configuration or way to modify this behaviour. I will check with internal ppl - but most are off til Mon.