X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fmaximize%2Fplugin.js;h=97ac0b0f3e12ed3e3b964afc2d04aa0130ee4d1c;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hp=abefd1d31c5bcd4aac8c305e5dd37c40b22c0953;hpb=4e90e78dc97789709ee7404359a5517540c27553;p=ckeditor.git diff --git a/_source/plugins/maximize/plugin.js b/_source/plugins/maximize/plugin.js index abefd1d..97ac0b0 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 @@ -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() {