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

Avatar

Avatar

vipins5188

Avatar

vipins5188

vipins5188

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.

View Entire Topic

Avatar

Avatar

vipins5188

Avatar

vipins5188

vipins5188

05-12-2018

Anyone any update ??