Ticket #5455: 5455_4.patch

File 5455_4.patch, 772 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/styles/plugin.js

     
    10381038                                        lastChild.mergeSiblings();
    10391039                        }
    10401040                }
    1041         }
     1041                // We intend to remove the element while still have attributes left on it,
     1042                // migrate them it into a span (without additional semantics) element instead.
     1043                else
     1044                {
     1045                        var replacement = new CKEDITOR.dom.element( 'span' );
     1046                        element.copyAttributes( replacement, { _cke_expando : 1 } );
     1047                        element.moveChildren( replacement );
     1048                        replacement.replace( element );
     1049                        replacement.mergeSiblings();
     1050                }
     1051        }
    10421052
    10431053        function getElement( style, targetDocument )
    10441054        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy