X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fmaximize%2Fplugin.js;h=9e9676a3af539e3e2843f300a49a0fe056d3f1a2;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=abefd1d31c5bcd4aac8c305e5dd37c40b22c0953;hpb=4e90e78dc97789709ee7404359a5517540c27553;p=ckeditor.git diff --git a/_source/plugins/maximize/plugin.js b/_source/plugins/maximize/plugin.js index abefd1d..9e9676a 100644 --- a/_source/plugins/maximize/plugin.js +++ b/_source/plugins/maximize/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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 @@ -154,7 +154,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.addCommand( 'maximize', { - modes : { wysiwyg : 1, source : 1 }, + // Disabled on iOS (#8307). + modes : { wysiwyg : !CKEDITOR.env.iOS, source : !CKEDITOR.env.iOS }, + readOnly : 1, editorFocus : false, exec : function() {