From: Aleksander Ɓukasz Date: Mon, 7 Oct 2013 13:59:51 +0000 (+0200) Subject: integration fix: sourceEditor module X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/e3d38a12c37e706077d9a42194fb80eb05e12658 integration fix: sourceEditor module --- 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'); },