Archived
1
0

Fixed a WebKit bug in which cleanup_html() removed text with color.

This commit is contained in:
Dan Helfman 2009-05-15 23:38:52 -07:00
parent 26985d326f
commit 714230a796

View File

@ -981,6 +981,8 @@ Editor.prototype.cleanup_html = function ( key_code ) {
node.removeAttribute( "class" );
if ( style == undefined && node.tagName != "font" && node.tagName != "FONT" )
continue;
if ( getStyle( node, "color" ) || getStyle( node, "background-color" ) )
continue;
var replacement = withDocument( this.document, function () {
// font-size is set when ending title mode