Ticket #7787: 7787.patch
File 7787.patch, 1.2 KB (added by , 10 years ago) |
---|
-
_source/plugins/docprops/dialogs/docprops.js
440 440 { 441 441 this.setValue( body.getComputedStyle( 'color' ) ); 442 442 }, 443 commit : function( doc, html, head, body )443 commit : function( doc, html, head, body, isPreview ) 444 444 { 445 if ( this.isChanged() )445 if ( this.isChanged() || isPreview ) 446 446 { 447 447 body.removeAttribute( 'text' ); 448 448 var val = this.getValue(); … … 459 459 var val = body.getComputedStyle( 'background-color' ) || ''; 460 460 this.setValue( val == 'transparent' ? '' : val ); 461 461 }, 462 commit : function( doc, html, head, body )462 commit : function( doc, html, head, body, isPreview ) 463 463 { 464 if ( this.isChanged() )464 if ( this.isChanged() || isPreview ) 465 465 { 466 466 body.removeAttribute( 'bgcolor' ); 467 467 var val = this.getValue();