Opened 13 years ago

Closed 13 years ago

#6940 closed Bug (invalid)

editor.getSelection() not working in ie

Reported by: ehsan Owned by:
Priority: Normal Milestone:
Component: General Version: 3.5
Keywords: Cc:

Description

i use following code in ff and get selection text but in ie it returns [object].

(function() {

Section 1 : Code to execute when the toolbar button is pressed var a = {

exec: function(editor) {

var x = editor.getSelection().getNative(); alert(x);

}

},

Section 2 : Create the button and add the functionality to it

b = 'test';

CKEDITOR.plugins.add(b, {

init: function(editor) {

editor.addCommand(b, a); editor.ui.addButton("test", {

label: 'test', icon: this.path + "test.gif", command: b

});

}

});

})();

Change History (1)

comment:1 Changed 13 years ago by Garry Yao

Resolution: invalid
Status: newclosed

"editor.getSelection().getNative()" is NOT in the right way of figuring out selected text, please use our forum for support.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy