This is what I use:
var mySelection = editor.getSelection();
if (CKEDITOR.env.ie) {
mySelection.unlock(true);
selectedText = mySelection.getNative().createRange().text;
} else {
selectedText = mySelection.getNative();
}
More Related Contents:
- install flash player automatically with javascript [closed]
- ‘onload’ handler for ‘script’ tag in internet explorer
- How can I prevent the backspace key from navigating back?
- How to start automatic download of a file in Internet Explorer?
- Access denied to jQuery script on IE
- How to getting browser current locale preference using javascript?
- Jquery: change event to input file on IE
- Javascript IE detection, why not use simple conditional comments? [duplicate]
- Save base64 string as PDF at client side with JavaScript
- Syntax error in IE using ES6 arrow functions
- How to automatically allow blocked content in IE?
- Detect fullscreen mode
- setAttribute and video.src for changing video tag source not working in IE9
- Why IE 11 display blank page rendering react app
- Cross-browser (IE8-) getComputedStyle with Javascript?
- Changing the type in IE with JavaScript
- How can I obtain the local time in jQuery?
- Problem with jQuery.ajax with ‘delete’ method in ie
- img onload doesn’t work well in IE7
- How to disable elements selection and resizing in contenteditable div?
- Enabling Save button on JQ Grid with InlineEditing and CellEdit
- What is the purpose of passing-in undefined?
- control the working directory for ?
- How to add a custom button to the toolbar that calls a JavaScript function?
- How to detect IE 11 with javascript in Asp.net
- IE has empty document.referrer after a location.replace
- setTimeout Internet Explorer
- Emulate clicking a link with Javascript that works with IE
- The best placeholder polyfil script for ie7, ie8 and ie9 [closed]
- doPostback failing in IE 11+ Windows 8.1