Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.5.1
[ckeditor.git]
/
_source
/
plugins
/
showblocks
/
plugin.js
diff --git
a/_source/plugins/showblocks/plugin.js
b/_source/plugins/showblocks/plugin.js
index
552cbe4
..
cbec314
100644
(file)
--- a/
_source/plugins/showblocks/plugin.js
+++ b/
_source/plugins/showblocks/plugin.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-24,9
+24,10
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
'.%2 h6'+
\r
'{'+
\r
'background-repeat: no-repeat;'+
\r
'.%2 h6'+
\r
'{'+
\r
'background-repeat: no-repeat;'+
\r
+ 'background-position: top %3;'+
\r
'border: 1px dotted gray;'+
\r
'padding-top: 8px;'+
\r
'border: 1px dotted gray;'+
\r
'padding-top: 8px;'+
\r
- 'padding-left: 8px;'+
\r
+ 'padding-%3: 8px;'+
\r
'}'+
\r
\r
'.%2 p'+
\r
'}'+
\r
\r
'.%2 p'+
\r
@@
-84,7
+85,7
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
'%1h6.png);'+
\r
'}';
\r
\r
'%1h6.png);'+
\r
'}';
\r
\r
- var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g;
\r
+ var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g;
\r
\r
var commandDefinition =
\r
{
\r
\r
var commandDefinition =
\r
{
\r
@@
-118,7
+119,8
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
editor.addCss( cssTemplate
\r
.replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' )
\r
\r
editor.addCss( cssTemplate
\r
.replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' )
\r
- .replace( cssClassRegex, 'cke_show_blocks ' ) );
\r
+ .replace( cssClassRegex, 'cke_show_blocks ' )
\r
+ .replace( backgroundPositionRegex, editor.lang.dir == 'rtl' ? 'right' : 'left' ) );
\r
\r
editor.ui.addButton( 'ShowBlocks',
\r
{
\r
\r
editor.ui.addButton( 'ShowBlocks',
\r
{
\r
@@
-145,10
+147,10
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
/**
\r
* Whether to automaticaly enable the "show block" command when the editor
\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
* @type Boolean
\r
* @default false
\r
* @example
\r
* config.startupOutlineBlocks = true;
\r
*/
\r
-CKEDITOR.config.startupOutlineBlocks = false;
\r