JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5
[ckeditor.git] / _source / plugins / undo / plugin.js
index fde581f..8801be2 100644 (file)
@@ -133,7 +133,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        editor.on( 'updateSnapshot', function()\r
                        {\r
                                if ( undoManager.currentImage && new Image( editor ).equals( undoManager.currentImage ) )\r
-                                       setTimeout( function () { undoManager.update(); }, 0 );\r
+                                       setTimeout( function() { undoManager.update(); }, 0 );\r
                        });\r
                }\r
        });\r
@@ -152,7 +152,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        selection       = contents && editor.getSelection();\r
 \r
                // In IE, we need to remove the expando attributes.\r
-               CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+_cke_expando=".*?"/g, '' ) );\r
+               CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+data-cke-expando=".*?"/g, '' ) );\r
 \r
                this.contents   = contents;\r
                this.bookmarks  = selection && selection.createBookmarks2( true );\r
@@ -267,7 +267,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                                                // In IE, we need to remove the expando attributes.\r
                                                if ( CKEDITOR.env.ie )\r
-                                                       currentSnapshot = currentSnapshot.replace( /\s+_cke_expando=".*?"/g, '' );\r
+                                                       currentSnapshot = currentSnapshot.replace( /\s+data-cke-expando=".*?"/g, '' );\r
 \r
                                                if ( beforeTypeImage.contents != currentSnapshot )\r
                                                {\r
@@ -339,7 +339,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                         */\r
                        this.index = -1;\r
 \r
-                       this.limit = this.editor.config.undoStackSize;\r
+                       this.limit = this.editor.config.undoStackSize || 20;\r
 \r
                        this.currentImage = null;\r
 \r
@@ -545,7 +545,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
  * @example\r
  * config.undoStackSize = 50;\r
  */\r
-CKEDITOR.config.undoStackSize = 20;\r
 \r
 /**\r
  * Fired when the editor is about to save an undo snapshot. This event can be\r