Rich text editor stripes href attribute when single quotes used | Community
Skip to main content
Level 2
October 16, 2015
Solved

Rich text editor stripes href attribute when single quotes used

  • October 16, 2015
  • 3 replies
  • 1200 views

Hi guys,

 

I have an issue with rich text editor. Lets say I have rich text editor and I want to set initial value for it using crx de. I set the value of property text to <a href='someAddress'>...</a> using single quotation mark for attribute value. Then I see the result and the link pointing to the correct address. Then I switch to editor mode, edit text and save it - tag a is still here but without href attribute. But if I use double quotes like <a href="someAddress">...</a> everything works fine. Is it expected behaviour? Bug? The version of AEM is 5.6. 

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Please file daycare & looks like a bug. 

3 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Please file daycare & looks like a bug. 

Level 2
October 16, 2015

Alternatively does someone know if the source code of components is available somewhere? 

smacdonald2008
Level 10
October 16, 2015

You can find the code for CQ components under /Libs in CRXDE Lite, as shown in this illustration:

[img]libs.png[/img]

As a matter of fact - when writing your own components - Adobe encourages developers to copy the source code under libs and them modify the code. This is shown in this topic: 

http://dev.day.com/docs/en/cq/current/getting_started/first_steps_for_developers.html

Of course -- you can look at the code to better understand how CQ works.