JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / indent / plugin.js
index 7967c78..330af61 100644 (file)
@@ -15,6 +15,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function onSelectionChange( evt )\r
        {\r
+               if ( evt.editor.readOnly )\r
+                       return null;\r
+\r
                var editor = evt.editor,\r
                        elementPath = evt.data.path,\r
                        list = elementPath && elementPath.contains( listNodeNames ),\r