Changeset 5871
- Timestamp:
- 09/12/10 20:31:07 (3 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 13 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/showblocks/images/block_address.png (modified) (previous)
-
_source/plugins/showblocks/images/block_blockquote.png (modified) (previous)
-
_source/plugins/showblocks/images/block_div.png (modified) (previous)
-
_source/plugins/showblocks/images/block_h1.png (modified) (previous)
-
_source/plugins/showblocks/images/block_h2.png (modified) (previous)
-
_source/plugins/showblocks/images/block_h3.png (modified) (previous)
-
_source/plugins/showblocks/images/block_h4.png (modified) (previous)
-
_source/plugins/showblocks/images/block_h5.png (modified) (previous)
-
_source/plugins/showblocks/images/block_h6.png (modified) (previous)
-
_source/plugins/showblocks/images/block_p.png (modified) (previous)
-
_source/plugins/showblocks/images/block_pre.png (modified) (previous)
-
_source/plugins/showblocks/plugin.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r5870 r5871 72 72 <li><a href="http://dev.ckeditor.com/ticket/6255">#6255</a> : Inserting a page break as the first node triggered an error.</li> 73 73 <li><a href="http://dev.ckeditor.com/ticket/6188">#6188</a> : [IE7] Automatic color button had the wrong cursor.</li> 74 <li><a href="http://dev.ckeditor.com/ticket/6129">#6129</a> : The show blocks' labels are now shown in the right for RTL languages.</li> 74 75 <li>Updated the following language files:<ul> 75 76 <li><a href="http://dev.ckeditor.com/ticket/6246">#6246</a> : Chinese Simplified;</li> -
CKEditor/trunk/_source/plugins/showblocks/plugin.js
r5206 r5871 25 25 '{'+ 26 26 'background-repeat: no-repeat;'+ 27 'background-position: top %3;'+ 27 28 'border: 1px dotted gray;'+ 28 29 'padding-top: 8px;'+ 29 'padding- left: 8px;'+30 'padding-%3: 8px;'+ 30 31 '}'+ 31 32 … … 85 86 '}'; 86 87 87 var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g ;88 var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g; 88 89 89 90 var commandDefinition = … … 119 120 editor.addCss( cssTemplate 120 121 .replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' ) 121 .replace( cssClassRegex, 'cke_show_blocks ' ) ); 122 .replace( cssClassRegex, 'cke_show_blocks ' ) 123 .replace( backgroundPositionRegex, editor.lang.dir == 'rtl' ? 'right' : 'left' ) ); 122 124 123 125 editor.ui.addButton( 'ShowBlocks',
Note: See TracChangeset
for help on using the changeset viewer.
