Ticket #6865: 6865_2.patch

File 6865_2.patch, 801 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/div/dialogs/div.js

     
    498498                                var size = containers.length;
    499499                                for ( var i = 0; i < size; i++ )
    500500                                {
     501                                        var dirBefore = containers[ i ].getDirection();
    501502                                        this.commitContent( containers[ i ] );
     503                                        var dir = containers[ i ].getDirection();
    502504
     505                                        // Update direction status.
     506                                        ( dir != dirBefore ) && editor.fire( 'dirChanged', { node : containers[ i ], dir : dir } );
     507                                        editor.forceNextSelectionCheck();
     508
    503509                                        // Remove empty 'style' attribute.
    504510                                        !containers[ i ].getAttribute( 'style' ) && containers[ i ].removeAttribute( 'style' );
    505511                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy