Ticket #4889: 4889.patch

File 4889.patch, 793 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/newpage/plugin.js

     
    2121                                        var command = this;
    2222                                        editor.setData( editor.config.newpage_html, function()
    2323                                        {
    24                                                 editor.fire( 'afterCommandExec',
    25                                                 {
    26                                                         name: command.name,
    27                                                         command: command
    28                                                 } );
     24                                                // Save the undo snapshot after all document changes are affected. (#4889)
     25                                                setTimeout( function ()
     26                                                {
     27                                                        editor.fire( 'afterCommandExec',
     28                                                        {
     29                                                                name: command.name,
     30                                                                command: command
     31                                                        } );
     32                                                       
     33                                                }, 200 );
    2934                                        } );
    3035                                        editor.focus();
    3136                                },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy