JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / maximize / plugin.js
index abefd1d..9e9676a 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -85,7 +85,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                for ( var i in all )\r
                {\r
                        var one = all[ i ];\r
-                       if ( one.mode == 'wysiwyg' )\r
+                       if ( one.mode == 'wysiwyg' && !one.readOnly )\r
                        {\r
                                var body = one.document.getBody();\r
                                // Refresh 'contentEditable' otherwise\r
@@ -154,7 +154,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                        editor.addCommand( 'maximize',\r
                                {\r
-                                       modes : { wysiwyg : 1, source : 1 },\r
+                                       // Disabled on iOS (#8307).\r
+                                       modes : { wysiwyg : !CKEDITOR.env.iOS, source : !CKEDITOR.env.iOS },\r
+                                       readOnly : 1,\r
                                        editorFocus : false,\r
                                        exec : function()\r
                                        {\r