Hi
There is a bug when using GetSelection() function with IE. Try with your demo page "Add custom buttons (Pop-up)" with a small modification into "My_Custom_Text.html" file : Modify the script "button_click()" as follow :
function button_click() {
var editor=Window_GetDialogArguments(window);
var mySelectedText = editor.GetSelection();
alert(mySelectedText);
//var ta=document.getElementById("ta");
//editor.PasteHTML(ta.value);
}
Refresh the demo page, write a text and select it into the wysiwyg ... then push the personnalized button and click on "Insert it".
In FF, an alert is display with your selected text
In IE, an alert is display with "[object]" ... :-(
I need this function to insert the selected text into a personnalised link included into our CMS !
Thank's to help me.
Laurent - Toulouse, France