Changeset 5871


Ignore:
Timestamp:
09/12/2010 08:31:07 PM (5 years ago)
Author:
Saare
Message:

#6129: BIDI: Show Blocks should show the HTML Tags on the Right for RTL Languages.

Location:
CKEditor/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5870 r5871  
    7272                <li><a href="http://dev.ckeditor.com/ticket/6255">#6255</a> : Inserting a page break as the first node triggered an error.</li>
    7373                <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>
    7475                <li>Updated the following language files:<ul>
    7576                        <li><a href="http://dev.ckeditor.com/ticket/6246">#6246</a> : Chinese Simplified;</li>
  • CKEditor/trunk/_source/plugins/showblocks/plugin.js

    r5206 r5871  
    2525                '{'+
    2626                        'background-repeat: no-repeat;'+
     27                        'background-position: top %3;'+
    2728                        'border: 1px dotted gray;'+
    2829                        'padding-top: 8px;'+
    29                         'padding-left: 8px;'+
     30                        'padding-%3: 8px;'+
    3031                '}'+
    3132
     
    8586                '}';
    8687
    87         var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g;
     88        var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g;
    8889
    8990        var commandDefinition =
     
    119120                        editor.addCss( cssTemplate
    120121                                .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' ) );
    122124
    123125                        editor.ui.addButton( 'ShowBlocks',
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy