Skip to content

Commit

Permalink
Bugfix 4718 CRITICAL: Pages get unsaved occasionally with being edited
Browse files Browse the repository at this point in the history
  • Loading branch information
neexite committed Jun 20, 2014
1 parent de78648 commit 73ab261
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,12 @@ VisualEditorPageBinding.prototype.getCheckSum = function (checksum) {
return checksum;
}
} else {
checksum = this._tinyInstance.getDoc().body.innerHTML;
// IE innerHTML - returns wrong quotes (' instead ") in attribute data-markup
if (Client.isExplorer || Client.isExplorer11) {
checksum = this._tinyInstance.getContent();
} else {
checksum = this._tinyInstance.getDoc().body.innerHTML;
}

//delete mceC1Focused from checksum to prevent unexpected dirty
checksum = checksum.replace(/\s*mceC1Focused\s*/g, "");
Expand Down

0 comments on commit 73ab261

Please sign in to comment.