From 73ab26134c0b494505a6425c32ff83295b2ad6bf Mon Sep 17 00:00:00 2001 From: Taras Nakonechnyi Date: Fri, 20 Jun 2014 13:58:15 +0200 Subject: [PATCH] Bugfix 4718 CRITICAL: Pages get unsaved occasionally with being edited --- .../visualeditor/bindings/VisualEditorPageBinding.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Website/Composite/content/misc/editors/visualeditor/bindings/VisualEditorPageBinding.js b/Website/Composite/content/misc/editors/visualeditor/bindings/VisualEditorPageBinding.js index 27684ef521..931ee072bb 100644 --- a/Website/Composite/content/misc/editors/visualeditor/bindings/VisualEditorPageBinding.js +++ b/Website/Composite/content/misc/editors/visualeditor/bindings/VisualEditorPageBinding.js @@ -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, "");