fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Visual editor uses actual publications data
[fnpeditor.git]
/
modules
/
visualEditor.js
diff --git
a/modules/visualEditor.js
b/modules/visualEditor.js
index
e53bfbf
..
5e503bb
100644
(file)
--- a/
modules/visualEditor.js
+++ b/
modules/visualEditor.js
@@
-1,11
+1,15
@@
rng.modules.visualEditor = function(sandbox) {
\r
\r
rng.modules.visualEditor = function(sandbox) {
\r
\r
+ var data = sandbox.getBootstrappedData();
\r
+ var view = $(sandbox.getTemplate('main')({title: data.title, content: data.text}));
\r
+
\r
+
\r
return {
\r
start: function() {
\r
sandbox.publish('ready');
\r
},
\r
getView: function() {
\r
return {
\r
start: function() {
\r
sandbox.publish('ready');
\r
},
\r
getView: function() {
\r
- return
$('<p>visual editor</p>')
;
\r
+ return
view
;
\r
}
\r
\r
}
\r
}
\r
\r
}
\r