Ticket #4522: 4522.patch
File 4522.patch, 1.0 KB (added by , 15 years ago) |
---|
-
_source/plugins/undo/plugin.js
130 130 this.contents = this.contents.replace( /\s+_cke_expando=".*?"/g, '' ); 131 131 } 132 132 133 // Attributes whose value will change on html manipulation. 134 var unstableAttrs = /(?:href|src|name)="[^"]*?"/gi; 135 133 136 Image.prototype = 134 137 { 135 138 equals : function( otherImage, contentOnly ) 136 139 { 137 if ( this.contents != otherImage.contents ) 140 var thisContents = this.contents, 141 otherContents = otherImage.contents; 142 143 // IE6/7 mangled some of the attribute values, ignore them on comparison.(#4522) 144 if( CKEDITOR.env.ie && !CKEDITOR.env.ie8 ) 145 { 146 thisContents = thisContents.replace( unstableAttrs, '' ), 147 otherContents = otherContents.replace( unstableAttrs, '' ); 148 } 149 150 if ( thisContents != otherContents ) 138 151 return false; 139 152 140 153 if ( contentOnly )