Ticket #5415: 5415.patch
File 5415.patch, 1.2 KB (added by , 13 years ago) |
---|
-
_source/plugins/dialog/plugin.js
168 168 { 169 169 this.on( 'ok', function( evt ) 170 170 { 171 // Dialog confirm might probably introduce content changes (#5415). 172 editor.fire( 'saveSnapshot' ); 173 setTimeout( function () { editor.fire( 'saveSnapshot' ); }, 0 ); 171 174 if ( definition.onOk.call( this, evt ) === false ) 172 175 evt.data.hide = false; 173 176 }); -
_source/plugins/div/dialogs/div.js
484 484 }, 485 485 onOk : function() 486 486 { 487 editor.fire( 'saveSnapshot' );488 487 if ( command == 'editdiv' ) 489 488 containers = [ this._element ]; 490 489 else … … 499 498 // Remove empty 'style' attribute. 500 499 !containers[ i ].getAttribute( 'style' ) && containers[ i ].removeAttribute( 'style' ); 501 500 } 502 editor.fire( 'saveSnapshot' );503 501 504 502 this.hide(); 505 503 },