File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Fixed Issues:
22
22
* [ #13143 ] ( http://dev.ckeditor.com/ticket/13143 ) : [ Edge] Fixed: Focus lost while opening the panel.
23
23
* [ #13494 ] ( http://dev.ckeditor.com/ticket/13494 ) : Fixed: Error thrown in toolbar configurator if plugin requirements are unsatisfied.
24
24
* [ #11376 ] ( http://dev.ckeditor.com/ticket/11376 ) : [ IE11] Fixed: Loss of text when pasting bullet lists from Microsoft Word.
25
+ * [ #13387 ] ( http://dev.ckeditor.com/ticket/13387 ) : [ Edge] Fixed: "Permission denied" error thrown while loading the editor with developer tools open.
25
26
26
27
## CKEditor 4.5.1
27
28
Original file line number Diff line number Diff line change 27
27
// With IE, the custom domain has to be taken care at first,
28
28
// for other browers, the 'src' attribute should be left empty to
29
29
// trigger iframe's 'load' event.
30
- src = CKEDITOR . env . air ? 'javascript:void(0)' : CKEDITOR . env . ie ? 'javascript:void(function(){' + encodeURIComponent ( src ) + '}())' // jshint ignore:line
31
- :
32
- '' ;
30
+ // Microsoft Edge throws "Permission Denied" if treated like an IE (#13441).
31
+ if ( CKEDITOR . env . air ) {
32
+ src = 'javascript:void(0)' ; // jshint ignore:line
33
+ } else if ( CKEDITOR . env . ie && ! CKEDITOR . env . edge ) {
34
+ src = 'javascript:void(function(){' + encodeURIComponent ( src ) + '}())' ; // jshint ignore:line
35
+ } else {
36
+ src = '' ;
37
+ }
33
38
34
39
var iframe = CKEDITOR . dom . element . createFromHtml ( '<iframe src="' + src + '" frameBorder="0"></iframe>' ) ;
35
40
iframe . setStyles ( { width : '100%' , height : '100%' } ) ;
41
46
42
47
// Asynchronous iframe loading is only required in IE>8 and Gecko (other reasons probably).
43
48
// Do not use it on WebKit as it'll break the browser-back navigation.
44
- var useOnloadEvent = CKEDITOR . env . ie || CKEDITOR . env . gecko ;
49
+ var useOnloadEvent = ( CKEDITOR . env . ie && ! CKEDITOR . env . edge ) || CKEDITOR . env . gecko ;
45
50
if ( useOnloadEvent )
46
51
iframe . on ( 'load' , onLoad ) ;
47
52
You can’t perform that action at this time.
0 commit comments