+\r
+ /**\r
+ * Update the undo stacks with any subsequent DOM changes after this call.\r
+ * @name CKEDITOR.editor#updateUndo\r
+ * @example\r
+ * function()\r
+ * {\r
+ * editor.fire( 'updateSnapshot' );\r
+ * ...\r
+ * // Ask to include subsequent (in this call stack) DOM changes to be\r
+ * // considered as part of the first snapshot.\r
+ * editor.fire( 'updateSnapshot' );\r
+ * editor.document.body.append(...);\r
+ * ...\r
+ * }\r
+ */\r
+ editor.on( 'updateSnapshot', function()\r
+ {\r
+ if ( undoManager.currentImage && new Image( editor ).equals( undoManager.currentImage ) )\r
+ setTimeout( function () { undoManager.update(); }, 0 );\r
+ });\r