mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04:00
Added vitepress for documentation. (#6270)
This commit is contained in:
parent
a5a427fb84
commit
d004d19dd7
43 changed files with 4322 additions and 27 deletions
22
doc/api/pluginfw.md
Normal file
22
doc/api/pluginfw.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# 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 pair 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
|
||||
|
||||
?
|
||||
|
||||
## ...
|
Loading…
Add table
Add a link
Reference in a new issue