Opened 14 years ago
Closed 14 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
});
}
});
})();
"editor.getSelection().getNative()" is NOT in the right way of figuring out selected text, please use our forum for support.