Fixed a WebKit bug in which cleanup_html() removed text with color.
This commit is contained in:
parent
26985d326f
commit
714230a796
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user