Ticket #5415: 5415.patch

File 5415.patch, 1.2 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/dialog/plugin.js

     
    168168                {
    169169                        this.on( 'ok', function( evt )
    170170                                {
     171                                        // Dialog confirm might probably introduce content changes (#5415).
     172                                        editor.fire( 'saveSnapshot' );
     173                                        setTimeout( function () { editor.fire( 'saveSnapshot' ); }, 0 );
    171174                                        if ( definition.onOk.call( this, evt ) === false )
    172175                                                evt.data.hide = false;
    173176                                });
  • _source/plugins/div/dialogs/div.js

     
    484484                        },
    485485                        onOk : function()
    486486                        {
    487                                 editor.fire( 'saveSnapshot' );
    488487                                if ( command == 'editdiv' )
    489488                                        containers = [ this._element ];
    490489                                else
     
    499498                                        // Remove empty 'style' attribute.
    500499                                        !containers[ i ].getAttribute( 'style' ) && containers[ i ].removeAttribute( 'style' );
    501500                                }
    502                                 editor.fire( 'saveSnapshot' );
    503501
    504502                                this.hide();
    505503                        },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy