X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/efe36f4f1b5df351eeb4d40a54c3900cf9a7079b..019868549c3c14e1336d67187b70d3297be1847a:/src/editor/modules/sourceEditor/sourceEditor.js diff --git a/src/editor/modules/sourceEditor/sourceEditor.js b/src/editor/modules/sourceEditor/sourceEditor.js index e88e5e1..2e2e6ab 100644 --- a/src/editor/modules/sourceEditor/sourceEditor.js +++ b/src/editor/modules/sourceEditor/sourceEditor.js @@ -27,7 +27,7 @@ return function(sandbox) { return view; }, setDocument: function(document) { - editor.setValue(document); + editor.setValue(document.toXML()); editor.gotoLine(0); sandbox.publish('documentSet'); },