Ticket #6226: 6226_3.patch
File 6226_3.patch, 915 bytes (added by , 13 years ago) |
---|
-
_source/plugins/styles/plugin.js
775 775 776 776 while ( ( block = iterator.getNextParagraph() ) ) // Only one = 777 777 { 778 var newBlock = getElement( this, doc );778 var newBlock = getElement( this, doc, block ); 779 779 replaceBlock( block, newBlock ); 780 780 } 781 781 … … 1083 1083 } 1084 1084 } 1085 1085 1086 function getElement( style, targetDocument )1086 function getElement( style, targetDocument, block ) 1087 1087 { 1088 1088 var el; 1089 1089 … … 1097 1097 1098 1098 // Create the element. 1099 1099 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 ); 1100 1104 1101 1105 return setupElement( el, style ); 1102 1106 }