JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / blockquote / plugin.js
index a50038e..dc4eb8c 100644 (file)
@@ -25,8 +25,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function onSelectionChange( evt )\r
        {\r
-               var editor = evt.editor,\r
-                       command = editor.getCommand( 'blockquote' );\r
+               var editor = evt.editor;\r
+               if ( editor.readOnly )\r
+                       return;\r
+\r
+               var command = editor.getCommand( 'blockquote' );\r
                command.state = getState( editor, evt.data.path );\r
                command.fire( 'state' );\r
        }\r