Ticket #6625: 6625.patch

File 6625.patch, 758 bytes (added by Tobiasz Cudnik, 13 years ago)
  • _source/plugins/list/plugin.js

     
    119119                                                {
    120120                                                        currentListItem = doc.createElement( paragraphName );
    121121                                                        item.element.copyAttributes( currentListItem, { type:1, value:1 } );
    122                                                         dir && currentListItem.setAttribute( 'dir', dir );
     122                                                        var itemDir = item.element.getDirection() || dir;
     123                                                        itemDir &&
     124                                                                currentListItem.setAttribute( 'dir', itemDir );
    123125
    124126                                                        // There might be a case where there are no attributes in the element after all
    125127                                                        // (i.e. when "type" or "value" are the only attributes set). In this case, if enterMode = BR,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy