Ticket #4899: 4899.patch

File 4899.patch, 550 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/format/plugin.js

     
    5757
    5858                                        styles[ value ].apply( editor.document );
    5959
    60                                         editor.fire( 'saveSnapshot' );
     60                                        // Save the undo snapshot after all changes are affected. (#4899)
     61                                        setTimeout( function()
     62                                        {
     63                                                editor.fire( 'saveSnapshot' );
     64                                        }, 0 );
    6165                                },
    6266
    6367                                onRender : function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy