JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / undo / plugin.js
index 94744ea..89819f0 100644 (file)
@@ -90,7 +90,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        // Make the undo manager available only in wysiwyg mode.\r
                        editor.on( 'mode', function()\r
                                {\r
-                                       undoManager.enabled = editor.mode == 'wysiwyg';\r
+                                       undoManager.enabled = editor.readOnly ? false : editor.mode == 'wysiwyg';\r
                                        undoManager.onChange();\r
                                });\r
 \r
@@ -545,6 +545,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 /**\r
  * The number of undo steps to be saved. The higher this setting value the more\r
  * memory is used for it.\r
+ * @name CKEDITOR.config.undoStackSize\r
  * @type Number\r
  * @default 20\r
  * @example\r