X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/eb8ad1c4836166891f3456d5baa8eb12275bc46e..36926b40a25b1df76c4474c89a51483b93d8a68c:/src/editor/modules/sourceEditor/sourceEditor.js diff --git a/src/editor/modules/sourceEditor/sourceEditor.js b/src/editor/modules/sourceEditor/sourceEditor.js index 8159680..0d7b12e 100644 --- a/src/editor/modules/sourceEditor/sourceEditor.js +++ b/src/editor/modules/sourceEditor/sourceEditor.js @@ -13,6 +13,8 @@ return function(sandbox) { if(documentIsDirty) { editor.setValue(wlxmlDocument.toXML()); editor.gotoLine(0); + documentEditedHere = false; + sandbox.publish('documentSet'); documentIsDirty = false; }