Changeset 5942


Ignore:
Timestamp:
10/18/2010 09:07:33 AM (4 years ago)
Author:
paho
Message:

#6226: BIDI: Language direction applied to a Paragraph is removed when we apply one of Paragraph formatting options.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5941 r5942  
    6565                <li><a href="http://dev.ckeditor.com/ticket/6467">#6467</a> : [FF] It is now possible to disable the plugin command on "mode" event.</li> 
    6666                <li><a href="http://dev.ckeditor.com/ticket/6461">#6461</a> : Attributes are now being kept when changing block formatting.</li> 
     67                <li><a href="http://dev.ckeditor.com/ticket/6226">#6226</a> : BIDI: Language direction applied to a Paragraph is removed when we apply one of Paragraph formatting options.</li> 
    6768                <li>Updated the following language files:<ul> 
    6869                        <li><a href="http://dev.ckeditor.com/ticket/6427">#6427</a> : Ukrainian;</li> 
  • CKEditor/trunk/_source/plugins/styles/plugin.js

    r5886 r5942  
    776776                while ( ( block = iterator.getNextParagraph() ) )               // Only one = 
    777777                { 
    778                         var newBlock = getElement( this, doc ); 
     778                        var newBlock = getElement( this, doc, block ); 
    779779                        replaceBlock( block, newBlock ); 
    780780                } 
     
    10841084        } 
    10851085 
    1086         function getElement( style, targetDocument ) 
     1086        function getElement( style, targetDocument, block ) 
    10871087        { 
    10881088                var el; 
     
    10981098                // Create the element. 
    10991099                el = new CKEDITOR.dom.element( elementName, targetDocument ); 
     1100                 
     1101                // #6226: attributes should be copied before the new ones are applied 
     1102                if ( block ) 
     1103                        block.copyAttributes( el ); 
    11001104 
    11011105                return setupElement( el, style ); 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy