Ticket #5293: 5293_2.patch
File 5293_2.patch, 814 bytes (added by , 13 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
463 463 var writer = this.writer, 464 464 fragment = CKEDITOR.htmlParser.fragment.fromHtml( html, fixForBody ); 465 465 466 // Take the last fragment children. 467 var children = fragment.children, 468 lastChildren = children.length && children[ children.length - 1 ]; 469 470 // If the last children is a <br>, we assume it's a bogus, so 471 // remove it first. (#5293) 472 if ( lastChildren && lastChildren.name && lastChildren.name == 'br' ) 473 children.pop(); 474 466 475 writer.reset(); 467 476 468 477 fragment.writeHtml( writer, this.htmlFilter );