Hi!
I'm makin my own insert link popup.
I'm havin problems with editor.GetSelection() in IE7, i get an [object] return.
Firefox gives me the correct selected text.
my code:
function button_click()
{
var editor=Window_GetDialogArguments(window);
var sel = editor.GetSelection();
var href=document.getElementById("href"); //listbox with internal pages, returns an URL
var completeURL="<a href=\"" + href.value + "\">" + sel + "</a>";
editor.PasteHTML(completeURL);
}
Any ideas?
Thanks!