fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DocumentNodeElement wlxml class getting/setting
[fnpeditor.git]
/
modules
/
documentCanvas
/
documentCanvas.js
diff --git
a/modules/documentCanvas/documentCanvas.js
b/modules/documentCanvas/documentCanvas.js
index
2fa8722
..
7500e35
100644
(file)
--- a/
modules/documentCanvas/documentCanvas.js
+++ b/
modules/documentCanvas/documentCanvas.js
@@
-5,23
+5,27
@@
define([
'./transformations',
'./canvas',
'./canvasManager',
'./transformations',
'./canvas',
'./canvasManager',
-'libs/text!./template.html'], function(_, transformations, Canvas, CanvasManager, template) {
+'./canvas/canvas',
+'libs/text!./template.html'], function(_, transformations, Canvas, CanvasManager, canvas3, template) {
'use strict';
return function(sandbox) {
'use strict';
return function(sandbox) {
- var canvas = Canvas.create();
- var manager = new CanvasManager(canvas, sandbox);
+ var canvas = canvas3.fromXML(''); //canvasCanvas.create();
+ var manager;
+ var canvasWrapper = $(template);
/* public api */
return {
start: function() { sandbox.publish('ready'); },
getView: function() {
/* public api */
return {
start: function() { sandbox.publish('ready'); },
getView: function() {
- return canvas
.dom
;
+ return canvas
Wrapper
;
},
setDocument: function(xml) {
},
setDocument: function(xml) {
- canvas.setHTML(transformations.fromXML.getHTMLTree(xml));
+ canvas.loadWlxml(xml); //canvas.setHTML(transformations.fromXML.getHTMLTree(xml));
+ canvasWrapper.find('#rng-module-documentCanvas-content').empty().append(canvas.doc().dom());
+ manager = new CanvasManager(canvas, sandbox);
sandbox.publish('documentSet');
},
getDocument: function() {
sandbox.publish('documentSet');
},
getDocument: function() {