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);
});
Thu, 07/08/2010 - 14:33
#1

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 .