{\r
preserveState : true,\r
editorFocus : false,\r
+ readOnly: 1,\r
\r
exec : function ( editor )\r
{\r
\r
refresh : function( editor )\r
{\r
- var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';\r
- editor.document.getBody()[ funcName ]( 'cke_show_borders' );\r
+ if ( editor.document )\r
+ {\r
+ var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';\r
+ editor.document.getBody()[ funcName ]( 'cke_show_borders' );\r
+ }\r
}\r
};\r
\r