Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5162)
+++ /CKEditor/trunk/CHANGES.html (revision 5163)
@@ -80,5 +80,4 @@
#4951 : Replacing patterns into empty string throws errors.
#4963 : Link dialog doesn't open properly for e-mail type links.
- #4999 : Adding undo snapshot for editor::setData.
#5043 : Removed the possibility of having an unwanted script tag being outputted with the editor contents.
#3678 : There were issues when editing links inside floating divs with IE.
Index: /CKEditor/trunk/_source/core/editor.js
===================================================================
--- /CKEditor/trunk/_source/core/editor.js (revision 5162)
+++ /CKEditor/trunk/_source/core/editor.js (revision 5163)
@@ -584,6 +584,4 @@
* @param {Function} callback Function to be called after the setData
* is completed.
- * @param {Boolean} noUndo Indicates that the function call must not
- * create and undo snapshot.
* @example
* CKEDITOR.instances.editor1.setData( '<p>This is the editor data.</p>' );
@@ -594,14 +592,14 @@
* });
*/
- setData : function( data , callback, noUndo )
- {
- noUndo !== false && this.fire( 'saveSnapshot' );
-
- this.on( 'dataReady', function( evt )
+ setData : function( data , callback )
+ {
+ if( callback )
+ {
+ this.on( 'dataReady', function( evt )
{
evt.removeListener();
- callback && callback.call( evt.editor );
- noUndo !== false && this.fire( 'saveSnapshot' );
- });
+ callback.call( evt.editor );
+ } );
+ }
// Fire "setData" so data manipulation may happen.