Skip to content

Commit a49965b

Browse files
committed
Merge branch 't/9940'
2 parents e1a2770 + b41db8c commit a49965b

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ CKEditor 4 Changelog
1515
* [#9893](http://dev.ckeditor.com/ticket/9893): Fixed broken toolbar when editing mixed-dir content in quirks mode.
1616
* [#9845](http://dev.ckeditor.com/ticket/9845): Fixed TAB navigation in the Link dialog and the Anchors option is used and no anchors are available.
1717
* [#9883](http://dev.ckeditor.com/ticket/9883): Maximizing was making the entire page editable with divarea based editors.
18+
* [#9940](http://dev.ckeditor.com/ticket/9940): With Firefox, navigating back to a page with the editor was making the entire page editable.
1819

1920
## CKEditor 4.0.1
2021

plugins/wysiwygarea/plugin.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -508,30 +508,6 @@
508508
}
509509
});
510510

511-
// Fixing Firefox 'Back-Forward Cache' breaks design mode. (#4514)
512-
if ( CKEDITOR.env.gecko ) {
513-
(function() {
514-
var body = document.body;
515-
516-
if ( !body )
517-
window.addEventListener( 'load', arguments.callee, false );
518-
else {
519-
var currentHandler = body.getAttribute( 'onpageshow' );
520-
body.setAttribute( 'onpageshow', ( currentHandler ? currentHandler + ';' : '' ) + 'event.persisted&&(function(){' +
521-
'var x=CKEDITOR.instances,d,i;' +
522-
'for(i in x){' +
523-
'd=x[i].document;' +
524-
'if(d){' +
525-
'd.$.designMode="off";' +
526-
'd.$.designMode="on";' +
527-
'}' +
528-
'}' +
529-
'})();' );
530-
}
531-
})();
532-
533-
}
534-
535511
// DOM modification here should not bother dirty flag.(#4385)
536512
function restoreDirty( editor ) {
537513
if ( !editor.checkDirty() )

0 commit comments

Comments
 (0)