-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhooks.js
31 lines (25 loc) · 1.11 KB
/
hooks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var eejs = require("ep_etherpad-lite/node/eejs");
exports.eejsBlock_editbarMenuRight = function (hook_name, args, cb) {
args.content = eejs.require("ep_bookmark/templates/editbarButtons.ejs", {}, module) + args.content;
return cb();
}
exports.eejsBlock_editorContainerBox = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_bookmark/templates/modals.ejs", {}, module);
return cb();
}
exports.eejsBlock_body = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_bookmark/templates/modals.old.ejs", {}, module);
return cb();
}
exports.eejsBlock_styles = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_bookmark/templates/styles.ejs", {}, module);
return cb();
}
exports.eejsBlock_scripts = function (hook_name, args, cb) {
args.content = args.content + '<script src="/static/plugins/ep_bookmark/static/js/bookmarkManager.js"></script>';
return cb();
}
exports.eejsBlock_indexWrapper = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_bookmark/templates/index.ejs", {});
return cb();
}