\r
editor.attachStyleStateChange( style, function( state )\r
{\r
- editor.getCommand( commandName ).setState( state );\r
+ !editor.readOnly && editor.getCommand( commandName ).setState( state );\r
});\r
\r
editor.addCommand( commandName, new CKEDITOR.styleCommand( style ) );\r