integration fix: sourceEditor module
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 7 Oct 2013 13:59:51 +0000 (15:59 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 2 Dec 2013 13:50:52 +0000 (14:50 +0100)
src/editor/modules/sourceEditor/sourceEditor.js

index e88e5e1..2e2e6ab 100644 (file)
@@ -27,7 +27,7 @@ return function(sandbox) {
             return view;
         },
         setDocument: function(document) {
             return view;
         },
         setDocument: function(document) {
-            editor.setValue(document);
+            editor.setValue(document.toXML());
             editor.gotoLine(0);
             sandbox.publish('documentSet');
         },
             editor.gotoLine(0);
             sandbox.publish('documentSet');
         },