Fixing dirty state management in source editor
[fnpeditor.git] / src / editor / modules / sourceEditor / sourceEditor.js
index 8159680..0d7b12e 100644 (file)
@@ -13,6 +13,8 @@ return function(sandbox) {
         if(documentIsDirty) {
             editor.setValue(wlxmlDocument.toXML());
             editor.gotoLine(0);
+            documentEditedHere = false;
+
             sandbox.publish('documentSet');
             documentIsDirty = false;
         }