summaryrefslogtreecommitdiff
path: root/_source/plugins/showblocks
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-06-10 19:03:48 +0100
committerlsces <lester@lsces.co.uk>2012-06-10 19:03:48 +0100
commitf3ce03a71d3dd1c7dcbe474197fb1588949735db (patch)
tree7c31cd62ef0e2790966f96498e553f22fa4e08d3 /_source/plugins/showblocks
parent23b8cf2a890c7de389616702fd23c9c465311a59 (diff)
downloadckeditor-f3ce03a71d3dd1c7dcbe474197fb1588949735db.tar.gz
ckeditor-f3ce03a71d3dd1c7dcbe474197fb1588949735db.tar.bz2
ckeditor-f3ce03a71d3dd1c7dcbe474197fb1588949735db.zip
Update to CKEditor version 3.6.3
Diffstat (limited to '_source/plugins/showblocks')
-rw-r--r--_source/plugins/showblocks/images/block_address.pngbin288 -> 171 bytes
-rw-r--r--_source/plugins/showblocks/images/block_blockquote.pngbin293 -> 181 bytes
-rw-r--r--_source/plugins/showblocks/images/block_div.pngbin229 -> 136 bytes
-rw-r--r--_source/plugins/showblocks/images/block_h1.pngbin218 -> 127 bytes
-rw-r--r--_source/plugins/showblocks/images/block_h2.pngbin220 -> 134 bytes
-rw-r--r--_source/plugins/showblocks/images/block_h3.pngbin219 -> 131 bytes
-rw-r--r--_source/plugins/showblocks/images/block_h4.pngbin229 -> 133 bytes
-rw-r--r--_source/plugins/showblocks/images/block_h5.pngbin236 -> 133 bytes
-rw-r--r--_source/plugins/showblocks/images/block_h6.pngbin216 -> 129 bytes
-rw-r--r--_source/plugins/showblocks/images/block_p.pngbin205 -> 119 bytes
-rw-r--r--_source/plugins/showblocks/images/block_pre.pngbin223 -> 136 bytes
-rw-r--r--_source/plugins/showblocks/plugin.js22
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
index 8bbae6e..1ee67aa 100644
--- a/_source/plugins/showblocks/images/block_address.png
+++ b/_source/plugins/showblocks/images/block_address.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_blockquote.png b/_source/plugins/showblocks/images/block_blockquote.png
index cf065ba..cae3aec 100644
--- a/_source/plugins/showblocks/images/block_blockquote.png
+++ b/_source/plugins/showblocks/images/block_blockquote.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_div.png b/_source/plugins/showblocks/images/block_div.png
index a2806b1..c71f397 100644
--- a/_source/plugins/showblocks/images/block_div.png
+++ b/_source/plugins/showblocks/images/block_div.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_h1.png b/_source/plugins/showblocks/images/block_h1.png
index d43fbdb..3a64347 100644
--- a/_source/plugins/showblocks/images/block_h1.png
+++ b/_source/plugins/showblocks/images/block_h1.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_h2.png b/_source/plugins/showblocks/images/block_h2.png
index 27b5475..8062ebe 100644
--- a/_source/plugins/showblocks/images/block_h2.png
+++ b/_source/plugins/showblocks/images/block_h2.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_h3.png b/_source/plugins/showblocks/images/block_h3.png
index 3c3034f..5b6a403 100644
--- a/_source/plugins/showblocks/images/block_h3.png
+++ b/_source/plugins/showblocks/images/block_h3.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_h4.png b/_source/plugins/showblocks/images/block_h4.png
index ab3f64d..6c7f795 100644
--- a/_source/plugins/showblocks/images/block_h4.png
+++ b/_source/plugins/showblocks/images/block_h4.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_h5.png b/_source/plugins/showblocks/images/block_h5.png
index 93477d0..e153de0 100644
--- a/_source/plugins/showblocks/images/block_h5.png
+++ b/_source/plugins/showblocks/images/block_h5.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_h6.png b/_source/plugins/showblocks/images/block_h6.png
index 11ea1c2..c8d993a 100644
--- a/_source/plugins/showblocks/images/block_h6.png
+++ b/_source/plugins/showblocks/images/block_h6.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_p.png b/_source/plugins/showblocks/images/block_p.png
index d055c51..4e6035d 100644
--- a/_source/plugins/showblocks/images/block_p.png
+++ b/_source/plugins/showblocks/images/block_p.png
Binary files differ
diff --git a/_source/plugins/showblocks/images/block_pre.png b/_source/plugins/showblocks/images/block_pre.png
index be8ad26..d11a0ff 100644
--- a/_source/plugins/showblocks/images/block_pre.png
+++ b/_source/plugins/showblocks/images/block_pre.png
Binary files differ
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;