X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fplugins%2Fundo%2Fplugin.js;h=8801be239999947890ac2b212257d993503bb64f;hb=9afde8772159bd3436f1f5b7862960307710ae5a;hp=fde581f07014eb0e599f49a164c0a4d6e0722a5c;hpb=8665a7c6c60586526e32e8941fe2896739b6ebfb;p=ckeditor.git diff --git a/_source/plugins/undo/plugin.js b/_source/plugins/undo/plugin.js index fde581f..8801be2 100644 --- a/_source/plugins/undo/plugin.js +++ b/_source/plugins/undo/plugin.js @@ -133,7 +133,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license editor.on( 'updateSnapshot', function() { if ( undoManager.currentImage && new Image( editor ).equals( undoManager.currentImage ) ) - setTimeout( function () { undoManager.update(); }, 0 ); + setTimeout( function() { undoManager.update(); }, 0 ); }); } }); @@ -152,7 +152,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license selection = contents && editor.getSelection(); // In IE, we need to remove the expando attributes. - CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+_cke_expando=".*?"/g, '' ) ); + CKEDITOR.env.ie && contents && ( contents = contents.replace( /\s+data-cke-expando=".*?"/g, '' ) ); this.contents = contents; this.bookmarks = selection && selection.createBookmarks2( true ); @@ -267,7 +267,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // In IE, we need to remove the expando attributes. if ( CKEDITOR.env.ie ) - currentSnapshot = currentSnapshot.replace( /\s+_cke_expando=".*?"/g, '' ); + currentSnapshot = currentSnapshot.replace( /\s+data-cke-expando=".*?"/g, '' ); if ( beforeTypeImage.contents != currentSnapshot ) { @@ -339,7 +339,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ this.index = -1; - this.limit = this.editor.config.undoStackSize; + this.limit = this.editor.config.undoStackSize || 20; this.currentImage = null; @@ -545,7 +545,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * @example * config.undoStackSize = 50; */ -CKEDITOR.config.undoStackSize = 20; /** * Fired when the editor is about to save an undo snapshot. This event can be