fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip: first integration of rewritten engine into canvas
[fnpeditor.git]
/
src
/
editor
/
modules
/
data
/
data.js
diff --git
a/src/editor/modules/data/data.js
b/src/editor/modules/data/data.js
index
9b2f163
..
896fc56
100644
(file)
--- a/
src/editor/modules/data/data.js
+++ b/
src/editor/modules/data/data.js
@@
-1,4
+1,8
@@
-define(['./saveDialog'], function(saveDialog) {
+define([
+ './saveDialog',
+ 'wlxml/wlxml'
+
+], function(saveDialog, wlxml) {
'use strict';
'use strict';
@@
-9,6
+13,7
@@
return function(sandbox) {
var document_version = sandbox.getBootstrappedData().version;
var history = sandbox.getBootstrappedData().history;
var document_version = sandbox.getBootstrappedData().version;
var history = sandbox.getBootstrappedData().history;
+ var wlxmlDocument = wlxml.WLXMLDocumentFromXML(sandbox.getBootstrappedData().document);
if(doc === '') {
doc = '<section\n\
if(doc === '') {
doc = '<section\n\
@@
-62,6
+67,9
@@
return function(sandbox) {
getDocument: function() {
return doc;
},
getDocument: function() {
return doc;
},
+ getDocument2: function() {
+ return wlxmlDocument;
+ },
commitDocument: function(newDocument, reason) {
doc = newDocument;
sandbox.publish('documentChanged', doc, reason);
commitDocument: function(newDocument, reason) {
doc = newDocument;
sandbox.publish('documentChanged', doc, reason);