X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fbasicstyles%2Fplugin.js;h=aa00e9a29e5b1bee8c7e3f9618f9648059213ead;hb=4e70ea24db840898be8cc21c950363a52a2a6aba;hp=74507e350fb3573ed6769ad429aed4da603008f8;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/plugins/basicstyles/plugin.js b/_source/plugins/basicstyles/plugin.js index 74507e3..aa00e9a 100644 --- a/_source/plugins/basicstyles/plugin.js +++ b/_source/plugins/basicstyles/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -17,7 +17,7 @@ CKEDITOR.plugins.add( 'basicstyles', editor.attachStyleStateChange( style, function( state ) { - editor.getCommand( commandName ).setState( state ); + !editor.readOnly && editor.getCommand( commandName ).setState( state ); }); editor.addCommand( commandName, new CKEDITOR.styleCommand( style ) );