Ticket #4889: 4889.patch
File 4889.patch, 793 bytes (added by , 13 years ago) |
---|
-
_source/plugins/newpage/plugin.js
21 21 var command = this; 22 22 editor.setData( editor.config.newpage_html, function() 23 23 { 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 ); 29 34 } ); 30 35 editor.focus(); 31 36 },