Ticket #6129: 6129.patch
File 6129.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/plugins/showblocks/plugin.js
24 24 '.%2 h6'+ 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 32 33 '.%2 p'+ … … 84 85 '%1h6.png);'+ 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 = 90 91 { … … 118 119 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', 124 126 {