Ticket #6662: 6662_4.patch

File 6662_4.patch, 1.5 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/pastefromword/filter/default.js

     
    807807
    808808                                        'font' : function( element )
    809809                                        {
    810                                                 // IE/Safari: drop the font tag if it comes from list bullet text.
    811                                                 if ( !CKEDITOR.env.gecko && isListBulletIndicator( element.parent ) )
     810                                                // Drop the font tag if it comes from list bullet text.
     811                                                if ( isListBulletIndicator( element.parent ) )
    812812                                                {
    813813                                                        delete element.name;
    814814                                                        return;
     
    859859
    860860                                        'span' : function( element )
    861861                                        {
    862                                                 // IE/Safari: remove the span if it comes from list bullet text.
    863                                                 if ( !CKEDITOR.env.gecko && isListBulletIndicator( element.parent ) )
     862                                                // Remove the span if it comes from list bullet text.
     863                                                if ( isListBulletIndicator( element.parent ) )
    864864                                                        return false;
    865865
    866866                                                element.filterChildren();
     
    870870                                                        return null;
    871871                                                }
    872872
    873                                                 // For IE/Safari: List item bullet type is supposed to be indicated by
     873                                                // List item bullet type is supposed to be indicated by
    874874                                                // the text of a span with style 'mso-list : Ignore' or an image.
    875                                                 if ( !CKEDITOR.env.gecko && isListBulletIndicator( element ) )
     875                                                if ( isListBulletIndicator( element ) )
    876876                                                {
    877877                                                        var listSymbolNode = element.firstChild( function( node )
    878878                                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy