fnp
/
fnpeditor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5e503bbfb630b440c55231d2c90ee7ed28705113
[fnpeditor.git]
/
modules
/
visualEditor.js
1
rng.modules.visualEditor = function(sandbox) {
\r
2
\r
3
var data = sandbox.getBootstrappedData();
\r
4
var view = $(sandbox.getTemplate('main')({title: data.title, content: data.text}));
\r
5
\r
6
\r
7
return {
\r
8
start: function() {
\r
9
sandbox.publish('ready');
\r
10
},
\r
11
getView: function() {
\r
12
return view;
\r
13
}
\r
14
\r
15
}
\r
16
};