/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
var commandDefinition =\r
{\r
+ readOnly : 1,\r
preserveState : true,\r
editorFocus : false,\r
\r
\r
refresh : function( editor )\r
{\r
- var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';\r
- editor.document.getBody()[ funcName ]( 'cke_show_blocks' );\r
+ if ( editor.document )\r
+ {\r
+ var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';\r
+ editor.document.getBody()[ funcName ]( 'cke_show_blocks' );\r
+ }\r
}\r
};\r
\r
\r
/**\r
* Whether to automaticaly enable the "show block" command when the editor\r
- * loads.\r
+ * loads. (StartupShowBlocks in FCKeditor)\r
+ * @name CKEDITOR.config.startupOutlineBlocks\r
* @type Boolean\r
* @default false\r
* @example\r
* config.startupOutlineBlocks = true;\r
*/\r
-CKEDITOR.config.startupOutlineBlocks = false;\r