Ticket #4522: 4522_2.patch
File 4522_2.patch, 922 bytes (added by , 14 years ago) |
---|
-
_source/plugins/undo/plugin.js
130 130 this.contents = this.contents.replace( /\s+_cke_expando=".*?"/g, '' ); 131 131 } 132 132 133 // Attributes that browser may changing them when setting via innerHTML. 134 var protectedAttrs = /\s(?: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 // Comparing only the protected attribute values but not the original ones.(#4522) 144 if ( thisContents.replace( protectedAttrs, '' ) != otherContents.replace( protectedAttrs, '' ) ) 138 145 return false; 139 146 140 147 if ( contentOnly )