File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CKEditor 4 Changelog
5
5
6
6
Fixed Issues:
7
7
8
+ * [ #10612 ] ( http://dev.ckeditor.com/ticket/10612 ) : Internet Explorer 11 compatibility issues.
8
9
* [ #10831 ] ( http://dev.ckeditor.com/ticket/10831 ) : Image2: Merged ` image2inline ` and ` image2block ` into ` image2 ` widget.
9
10
10
11
## CKEditor 4.3 Beta
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if ( !CKEDITOR.env ) {
28
28
*
29
29
* @property {Boolean }
30
30
*/
31
- ie : eval ( '/*@cc_on!@*/false' ) ,
31
+ ie : ( agent . indexOf ( 'trident/' ) > - 1 ) ,
32
32
// Use eval to preserve conditional comment when compiling with Google Closure Compiler (#93).
33
33
34
34
/**
@@ -141,7 +141,7 @@ if ( !CKEDITOR.env ) {
141
141
*
142
142
* @property {Boolean }
143
143
*/
144
- env . gecko = ( navigator . product == 'Gecko' && ! env . webkit && ! env . opera ) ;
144
+ env . gecko = ( navigator . product == 'Gecko' && ! env . webkit && ! env . opera && ! env . ie ) ;
145
145
146
146
/**
147
147
* Indicates that CKEditor is running in Chrome.
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ CKEDITOR.scriptLoader = (function() {
118
118
src : url } ) ;
119
119
120
120
if ( callback ) {
121
- if ( CKEDITOR . env . ie ) {
121
+ if ( CKEDITOR . env . ie && CKEDITOR . env . version < 11 ) {
122
122
// FIXME: For IE, we are not able to return false on error (like 404).
123
123
script . $ . onreadystatechange = function ( ) {
124
124
if ( script . $ . readyState == 'loaded' || script . $ . readyState == 'complete' ) {
Original file line number Diff line number Diff line change 470
470
// when editor has no focus, remember this scroll
471
471
// position and revert it before context menu opens. (#5778)
472
472
if ( evt . data . $ . button == 2 ) {
473
- var sel = editor . document . $ . selection ;
474
- if ( sel . type == 'None' )
473
+ var sel = editor . document . getSelection ( ) ;
474
+ if ( ! sel || sel . getType ( ) == CKEDITOR . SELECTION_NONE )
475
475
scroll = editor . window . getScrollPosition ( ) ;
476
476
}
477
477
} ) ;
552
552
}
553
553
554
554
// It's much simpler for IE8+, we just need to reselect the reported range.
555
- if ( CKEDITOR . env . version > 7 ) {
555
+ // This hack does not work on IE>=11 because there's no old selection&range APIs.
556
+ if ( CKEDITOR . env . version > 7 && CKEDITOR . env . version < 11 ) {
556
557
html . on ( 'mousedown' , function ( evt ) {
557
558
if ( evt . data . getTarget ( ) . is ( 'html' ) ) {
558
559
// Limit the text selection mouse move inside of editable. (#9715)
You can’t perform that action at this time.
0 commit comments