diff options
author | cohitre <carlosrr@gmail.com> | 2013-04-13 12:06:51 -0700 |
---|---|---|
committer | cohitre <carlosrr@gmail.com> | 2013-04-13 12:06:51 -0700 |
commit | 90837437c58f3510a17ef4807d84ead267f81a25 (patch) | |
tree | 4113e1b4f85cdfe781cb76eb1916b2d6b1ae7359 /src/node/hooks/express | |
parent | 988653b8cec8d733b09e70ffb69d8b66fbfa9874 (diff) | |
download | etherpad-lite-90837437c58f3510a17ef4807d84ead267f81a25.zip |
Moving the toolbar plugin calls.
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r-- | src/node/hooks/express/specialpages.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/node/hooks/express/specialpages.js b/src/node/hooks/express/specialpages.js index 44002461..0295e87b 100644 --- a/src/node/hooks/express/specialpages.js +++ b/src/node/hooks/express/specialpages.js @@ -1,5 +1,7 @@ var path = require('path'); var eejs = require('ep_etherpad-lite/node/eejs'); +var toolbar = require("ep_etherpad-lite/node/utils/toolbar"); +var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks'); exports.expressCreateServer = function (hook_name, args, cb) { @@ -26,8 +28,15 @@ exports.expressCreateServer = function (hook_name, args, cb) { //serve pad.html under /p args.app.get('/p/:pad', function(req, res, next) - { - res.send(eejs.require("ep_etherpad-lite/templates/pad.html", {req: req})); + { + hooks.callAll("padInitToolbar", { + toolbar: toolbar + }); + + res.send(eejs.require("ep_etherpad-lite/templates/pad.html", { + req: req, + toolbar: toolbar + })); }); //serve timeslider.html under /p/$padname/timeslider @@ -52,4 +61,4 @@ exports.expressCreateServer = function (hook_name, args, cb) { }); -}
\ No newline at end of file +} |