Hello
Im having a real isuue with IE7 and get selection. When i try to extract the selected text from the editor i receive the error "getSelection is null or not an object". the annoying thing is it works great in i87, firefox, chrome & safari .
var editor_name = 'email_ckeditor'; $('.insert-url').click( function () { if (CKEDITOR.env.ie) { text_selection = CKEDITOR.instances[editor_name].getSelection().document.$.selection.createRange().text; } else { text_selection = CKEDITOR.instances[editor_name].getSelection().getNative(); }; alert("Text selection = "+text_selection); });
Re: getSelection IE7 = is null or not an object
c
Re: getSelection IE7 = is null or not an object
I have some 8 editors and I use an API like
CKEDITOR.instances[form_element.name].getData()) over a loop to extract the data .