Ticket #5455: 5455_4.patch
File 5455_4.patch, 772 bytes (added by , 13 years ago) |
---|
-
_source/plugins/styles/plugin.js
1038 1038 lastChild.mergeSiblings(); 1039 1039 } 1040 1040 } 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 } 1042 1052 1043 1053 function getElement( style, targetDocument ) 1044 1054 {