Hi,
I am trying to add functionality to rtf (or rte based components) such that, if a text is provided using hyperlink functionality, then, after that hyperlink an image icon corresponding to the link type should be placed after the hyperlinked text.
For example, if I provide a pdf link to some text in rtf by using the hyperlink functionality, a pdf image icon will be placed after it. Something like in the image below/attached.
Any suggestions on what kind of approaches can be followed to achieve this?
Thanks
[img]hyperlink eg.PNG[/img]
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi,
Does anyone have any idea to implement this functionality in such a way place appropriate thumbnail correspond to hyperlink.
Thanks
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Sham,
A custom plugin was developed and overlayed for LinkDialog.js. If the extension for the entered link is ".pdf" then I am trying to add a span with class name "pdf-icon" to the anchor tag containing the href for the link entered. I have to add icons using svg
You can refer this http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...
For this what I could find was that .append() has been suggested to directly append the span with class name, and getElementsByTagName() to get the anchor tag where the span is to be added. Unfortunately. this is some how not working may be because of the overlayed RTE JS.
Any example on this that you might know of?
Views
Replies
Total Likes
snbadobe wrote...
Hi Sham,
A custom plugin was developed and overlayed for LinkDialog.js. If the extension for the entered link is ".pdf" then I am trying to add a span with class name "pdf-icon" to the anchor tag containing the href for the link entered. I have to add icons using svg
You can refer this http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...
For this what I could find was that .append() has been suggested to directly append the span with class name, and getElementsByTagName() to get the anchor tag where the span is to be added. Unfortunately. this is some how not working may be because of the overlayed RTE JS.
Any example on this that you might know of?
responded in respective thread
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies