Greetings,
XHTML Strict does not allow the "target" attribute inside of an anchor. Instead, I have used rel="external" combined with some javascript when trying to open links in a new window. I would like to modify the default link manager to do this. So, instead of being able to select a "target" in the link manager, I would like to choose a value for "rel".
I was able to successfully customize the link manager by route of the ExternalDialogsPath property in the radEditor so that the drop down menu values are correct. However, I am unable to figure out how to override the callback function when the anchor is pasted back into the editor. When inserting an anchor into the radEditor, I would like to change the default of "target":
var myCallbackFunction = function(sender, args) { |
editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)); |
//---------------------------------------------^ |
} |
to "rel":
var myCallbackFunction = function(sender, args) { |
editor.pasteHtml(String.format("<a href={0} rel='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)); |
//-------------------------------------------^ |
} |
I am sure I am overlooking something simple but cannot find a solution online.
Thank you in advance for any help.
Darren