From: Aleksander Ɓukasz Date: Mon, 8 Apr 2013 14:38:08 +0000 (+0200) Subject: Visual editor uses actual publications data X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/969ec45041c117313a69c01d49edcc971d46d4b8 Visual editor uses actual publications data --- diff --git a/modules/visualEditor.js b/modules/visualEditor.js index e53bfbf..5e503bb 100644 --- a/modules/visualEditor.js +++ b/modules/visualEditor.js @@ -1,11 +1,15 @@ rng.modules.visualEditor = function(sandbox) { + var data = sandbox.getBootstrappedData(); + var view = $(sandbox.getTemplate('main')({title: data.title, content: data.text})); + + return { start: function() { sandbox.publish('ready'); }, getView: function() { - return $('

visual editor

'); + return view; } }