how can i get selected text and/or selected image?
I tried:
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var FCKSelection = oEditor.Selection ;
sel = FCKSelection.GetSelectedElement().tagName ;
alert(sel);
but it doesn't work.
Thanks for any help.
I tried:
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var FCKSelection = oEditor.Selection ;
sel = FCKSelection.GetSelectedElement().tagName ;
alert(sel);
but it doesn't work.
Thanks for any help.