diff options
Diffstat (limited to '_source/plugins/showblocks')
| -rw-r--r-- | _source/plugins/showblocks/images/block_address.png | bin | 288 -> 171 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_blockquote.png | bin | 293 -> 181 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_div.png | bin | 229 -> 136 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h1.png | bin | 218 -> 127 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h2.png | bin | 220 -> 134 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h3.png | bin | 219 -> 131 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h4.png | bin | 229 -> 133 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h5.png | bin | 236 -> 133 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h6.png | bin | 216 -> 129 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_p.png | bin | 205 -> 119 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_pre.png | bin | 223 -> 136 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/plugin.js | 22 |
12 files changed, 14 insertions, 8 deletions
diff --git a/_source/plugins/showblocks/images/block_address.png b/_source/plugins/showblocks/images/block_address.png Binary files differindex 8bbae6e..1ee67aa 100644 --- a/_source/plugins/showblocks/images/block_address.png +++ b/_source/plugins/showblocks/images/block_address.png diff --git a/_source/plugins/showblocks/images/block_blockquote.png b/_source/plugins/showblocks/images/block_blockquote.png Binary files differindex cf065ba..cae3aec 100644 --- a/_source/plugins/showblocks/images/block_blockquote.png +++ b/_source/plugins/showblocks/images/block_blockquote.png diff --git a/_source/plugins/showblocks/images/block_div.png b/_source/plugins/showblocks/images/block_div.png Binary files differindex a2806b1..c71f397 100644 --- a/_source/plugins/showblocks/images/block_div.png +++ b/_source/plugins/showblocks/images/block_div.png diff --git a/_source/plugins/showblocks/images/block_h1.png b/_source/plugins/showblocks/images/block_h1.png Binary files differindex d43fbdb..3a64347 100644 --- a/_source/plugins/showblocks/images/block_h1.png +++ b/_source/plugins/showblocks/images/block_h1.png diff --git a/_source/plugins/showblocks/images/block_h2.png b/_source/plugins/showblocks/images/block_h2.png Binary files differindex 27b5475..8062ebe 100644 --- a/_source/plugins/showblocks/images/block_h2.png +++ b/_source/plugins/showblocks/images/block_h2.png diff --git a/_source/plugins/showblocks/images/block_h3.png b/_source/plugins/showblocks/images/block_h3.png Binary files differindex 3c3034f..5b6a403 100644 --- a/_source/plugins/showblocks/images/block_h3.png +++ b/_source/plugins/showblocks/images/block_h3.png diff --git a/_source/plugins/showblocks/images/block_h4.png b/_source/plugins/showblocks/images/block_h4.png Binary files differindex ab3f64d..6c7f795 100644 --- a/_source/plugins/showblocks/images/block_h4.png +++ b/_source/plugins/showblocks/images/block_h4.png diff --git a/_source/plugins/showblocks/images/block_h5.png b/_source/plugins/showblocks/images/block_h5.png Binary files differindex 93477d0..e153de0 100644 --- a/_source/plugins/showblocks/images/block_h5.png +++ b/_source/plugins/showblocks/images/block_h5.png diff --git a/_source/plugins/showblocks/images/block_h6.png b/_source/plugins/showblocks/images/block_h6.png Binary files differindex 11ea1c2..c8d993a 100644 --- a/_source/plugins/showblocks/images/block_h6.png +++ b/_source/plugins/showblocks/images/block_h6.png diff --git a/_source/plugins/showblocks/images/block_p.png b/_source/plugins/showblocks/images/block_p.png Binary files differindex d055c51..4e6035d 100644 --- a/_source/plugins/showblocks/images/block_p.png +++ b/_source/plugins/showblocks/images/block_p.png diff --git a/_source/plugins/showblocks/images/block_pre.png b/_source/plugins/showblocks/images/block_pre.png Binary files differindex be8ad26..d11a0ff 100644 --- a/_source/plugins/showblocks/images/block_pre.png +++ b/_source/plugins/showblocks/images/block_pre.png diff --git a/_source/plugins/showblocks/plugin.js b/_source/plugins/showblocks/plugin.js index 552cbe4..de95124 100644 --- a/_source/plugins/showblocks/plugin.js +++ b/_source/plugins/showblocks/plugin.js @@ -1,5 +1,5 @@ /*
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@@ -24,9 +24,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license '.%2 h6'+
'{'+
'background-repeat: no-repeat;'+
+ 'background-position: top %3;'+
'border: 1px dotted gray;'+
'padding-top: 8px;'+
- 'padding-left: 8px;'+
+ 'padding-%3: 8px;'+
'}'+
'.%2 p'+
@@ -84,10 +85,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license '%1h6.png);'+
'}';
- var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g;
+ var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g;
var commandDefinition =
{
+ readOnly : 1,
preserveState : true,
editorFocus : false,
@@ -99,8 +101,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license refresh : function( editor )
{
- var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';
- editor.document.getBody()[ funcName ]( 'cke_show_blocks' );
+ if ( editor.document )
+ {
+ var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';
+ editor.document.getBody()[ funcName ]( 'cke_show_blocks' );
+ }
}
};
@@ -118,7 +123,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.addCss( cssTemplate
.replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' )
- .replace( cssClassRegex, 'cke_show_blocks ' ) );
+ .replace( cssClassRegex, 'cke_show_blocks ' )
+ .replace( backgroundPositionRegex, editor.lang.dir == 'rtl' ? 'right' : 'left' ) );
editor.ui.addButton( 'ShowBlocks',
{
@@ -145,10 +151,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license /**
* Whether to automaticaly enable the "show block" command when the editor
- * loads.
+ * loads. (StartupShowBlocks in FCKeditor)
+ * @name CKEDITOR.config.startupOutlineBlocks
* @type Boolean
* @default false
* @example
* config.startupOutlineBlocks = true;
*/
-CKEDITOR.config.startupOutlineBlocks = false;
|
