var Image = CKEDITOR.plugins.undo.Image = function( editor )\r
{\r
this.editor = editor;\r
+\r
+ editor.fire( 'beforeUndoImage' );\r
+\r
var contents = editor.getSnapshot(),\r
selection = contents && editor.getSelection();\r
\r
\r
this.contents = contents;\r
this.bookmarks = selection && selection.createBookmarks2( true );\r
+\r
+ editor.fire( 'afterUndoImage' );\r
};\r
\r
// Attributes that browser may changing them when setting via innerHTML.\r
* @name CKEDITOR.editor#saveSnapshot\r
* @event\r
*/\r
+\r
+/**\r
+ * Fired before an undo image is to be taken. An undo image represents the\r
+ * editor state at some point. It's saved into an undo store, so the editor is\r
+ * able to recover the editor state on undo and redo operations.\r
+ * @name CKEDITOR.editor#beforeUndoImage\r
+ * @since 3.5.3\r
+ * @see CKEDITOR.editor#afterUndoImage\r
+ * @event\r
+ */\r
+\r
+/**\r
+ * Fired after an undo image is taken. An undo image represents the\r
+ * editor state at some point. It's saved into an undo store, so the editor is\r
+ * able to recover the editor state on undo and redo operations.\r
+ * @name CKEDITOR.editor#afterUndoImage\r
+ * @since 3.5.3\r
+ * @see CKEDITOR.editor#beforeUndoImage\r
+ * @event\r
+ */\r