1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
etherpad_ynh/sources/doc/api/pluginfw.md
2014-01-07 20:50:21 +00:00

605 B

Plugin Framework

require("ep_etherpad-lite/static/js/plugingfw/plugins")

plugins.update

require("ep_etherpad-lite/static/js/plugingfw/plugins").update() will use npm to list all installed modules and read their ep.json files, registering the contained hooks. A hook registration is a pairs of a hook name and a function reference (filename for require() plus function name)

hooks.callAll

require("ep_etherpad-lite/static/js/plugingfw/hooks").callAll("hook_name", {argname:value}) will call all hook functions registered for hook_name with {argname:value}.

hooks.aCallAll

?

...