JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / justify / plugin.js
index 0a5f07d..82c1fcc 100644 (file)
@@ -49,6 +49,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function onSelectionChange( evt )\r
        {\r
+               if ( evt.editor.readOnly )\r
+                       return;\r
+\r
                var command = evt.editor.getCommand( this.name );\r
                command.state = getState.call( this, evt.editor, evt.data.path );\r
                command.fire( 'state' );\r