X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fmaximize%2Fplugin.js;h=4c04d14885f35fe27f3e65b2fefb6414479768dd;hb=refs%2Ftags%2Fv3.6;hp=abefd1d31c5bcd4aac8c305e5dd37c40b22c0953;hpb=1056598c95187351dc58f4991d331e2258d038b5;p=ckeditor.git diff --git a/_source/plugins/maximize/plugin.js b/_source/plugins/maximize/plugin.js index abefd1d..4c04d14 100644 --- a/_source/plugins/maximize/plugin.js +++ b/_source/plugins/maximize/plugin.js @@ -85,7 +85,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license for ( var i in all ) { var one = all[ i ]; - if ( one.mode == 'wysiwyg' ) + if ( one.mode == 'wysiwyg' && !one.readOnly ) { var body = one.document.getBody(); // Refresh 'contentEditable' otherwise @@ -155,6 +155,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.addCommand( 'maximize', { modes : { wysiwyg : 1, source : 1 }, + readOnly : 1, editorFocus : false, exec : function() {