\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