Here is what i am trying to achieve is:
Select an item (ie image in a unordered list) but automatically select the content for replacement to the <LI> (or anything that I would like it to be) level in the dom rather than the image.
This is to create some Html that is transformed for use with: jquery.lightbox
I already have some client script for a similar process:
1. If the user clicks on the image the dom will respond that the selected html is the image
2. if the selection corresponds to the correct object layout (already worked out in another method - ie youtube part: <a><img/></a>)
3. select outer html in the editor for replacement rather than just the image.
Otherwise i'm left with junk html that created unexpected results.
Second problem relates to this:
http://www.telerik.com/community/forums/aspnet-ajax/editor/object-embed-code-not-removed-in-firefox.aspx
In the version notes what kind of thing shall i look for?
Best Regards,
Matthew Green
Select an item (ie image in a unordered list) but automatically select the content for replacement to the <LI> (or anything that I would like it to be) level in the dom rather than the image.
This is to create some Html that is transformed for use with: jquery.lightbox
I already have some client script for a similar process:
function setYouTubeArea() { |
Telerik.Web.UI.Editor.CommandList["YoutubeManager"] = |
function(commandName, editor, args) { |
var $e = getSelected(editor); |
var available = youtubeFormat($e); |
var insertFunction = |
function(sender, args) { |
//<a href="http://www.youtube.com/watch?v=qqXi8WmQ_WM" |
//rel="prettyPhoto" title=""> |
//<img src="images/thumbnails/flash-logo.jpg" alt="YouTube" width="60" /></a> |
editor.pasteHtml( |
String.format( |
"<a href='http://www.youtube.com/watch?v={0}' rel='prettyPhoto' title='{1}'><img width='194' src='http://img.youtube.com/vi/{0}/0.jpg' alt='YouTube'/></a>", |
args.href, |
args.title |
) |
) |
} |
var href = format.accessable ? format.link.href.replace("http://www.youtube.com/watch?v=", ""): ""; |
var title = format.accessable ? format.link.title: ""; |
argument //= available.link; |
= { href: "", title: ""}; |
argument.href = href; |
argument.title = title; |
editor.showExternalDialog('/EditorDialogs/YouTubeManager.aspx', argument, 450, 400, |
insertFunction, |
null, |
'Insert Link', |
true, |
Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move, |
true, |
true |
); |
} |
} |
1. If the user clicks on the image the dom will respond that the selected html is the image
2. if the selection corresponds to the correct object layout (already worked out in another method - ie youtube part: <a><img/></a>)
3. select outer html in the editor for replacement rather than just the image.
Otherwise i'm left with junk html that created unexpected results.
Second problem relates to this:
http://www.telerik.com/community/forums/aspnet-ajax/editor/object-embed-code-not-removed-in-firefox.aspx
In the version notes what kind of thing shall i look for?
Best Regards,
Matthew Green