Howdy,
I have a custom dialog for linink to pages in my site which is great it uses this client script below and inserts text into the editor.
var myCallbackFunction = function(sender, args)
{
editor.pasteHtml(String.format("<a href={0} originalAttribute="href" originalPath="{0}" target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name))
}
The big question is my user compalin when they want to link and Image they have to manually go into the markup and cut and paste, im may cases users have no idea.
Is there an example where script that can get the element and wrap it around an image??
This would be very helpful.
cheers
Matt
I have a custom dialog for linink to pages in my site which is great it uses this client script below and inserts text into the editor.
var myCallbackFunction = function(sender, args)
{
editor.pasteHtml(String.format("<a href={0} originalAttribute="href" originalPath="{0}" target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name))
}
The big question is my user compalin when they want to link and Image they have to manually go into the markup and cut and paste, im may cases users have no idea.
Is there an example where script that can get the element and wrap it around an image??
This would be very helpful.
cheers
Matt