Hi ,
I have to parse the RTE(Rich Text Editor) content data before saving for example needed to remove some new line(\n) and carriage return(\r) characters before save.
Please advice.smacdonald2008
Thanks,
Manjunath DJ
Solved! Go to Solution.
I would use it within a HTL component and read the RTE value in Java and then manipulate it using a Java API.
I would use it within a HTL component and read the RTE value in Java and then manipulate it using a Java API.
Hi smacdonald2008
I need to store the values back to crx with formatted data.since we are accessing the for json format for service purpose.
Views
Replies
Total Likes
If you want to modify before reading it - I recommend looking through this blog to see if he has written a blog on how to modify the content using JS/plug-in. Something similar to this one:
Views
Replies
Total Likes
Some internal ppl recommended that you also look here:
Yes – a modified version of this should help
https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/546
Thank you lot . I will look into this.
Views
Replies
Total Likes
While parsing the RTE data in JSON from java newline characters are converted to '\n' so as suggested reading the RTE value in Java and then manipulate it using a Java API works fine.
Thanks,
Manjunath DJ
Views
Replies
Total Likes