Ticket #6940 (closed Bug: invalid)

Opened 4 years ago

Last modified 4 years ago

editor.getSelection() not working in ie

Reported by: eshah 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

comment:1 Changed 4 years ago by garry.yao

  • Status changed from new to closed
  • Resolution set to invalid

"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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy