JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / maximize / plugin.js
index abefd1d..4c04d14 100644 (file)
@@ -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
@@ -155,6 +155,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        editor.addCommand( 'maximize',\r
                                {\r
                                        modes : { wysiwyg : 1, source : 1 },\r
+                                       readOnly : 1,\r
                                        editorFocus : false,\r
                                        exec : function()\r
                                        {\r