From 969ec45041c117313a69c01d49edcc971d46d4b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 8 Apr 2013 16:38:08 +0200 Subject: [PATCH] Visual editor uses actual publications data --- modules/visualEditor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.20.1