mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Updated docs for new pad hooks (add, edit, remove)
This commit is contained in:
parent
3578e36616
commit
07c33c77c4
1 changed files with 28 additions and 0 deletions
|
@ -64,6 +64,34 @@ This hook gets called upon the rendering of an ejs template block. For any speci
|
||||||
|
|
||||||
Have a look at `src/templates/pad.html` and `src/templates/timeslider.html` to see which blocks are available.
|
Have a look at `src/templates/pad.html` and `src/templates/timeslider.html` to see which blocks are available.
|
||||||
|
|
||||||
|
## padCreated
|
||||||
|
Called from: src/node/db/Pad.js
|
||||||
|
|
||||||
|
1. pad - the pad instance
|
||||||
|
|
||||||
|
This hook gets called when a new pad was created.
|
||||||
|
|
||||||
|
## padLoaded
|
||||||
|
Called from: src/node/db/Pad.js
|
||||||
|
|
||||||
|
1. pad - the pad instance
|
||||||
|
|
||||||
|
This hook gets called when an pad was loaded.
|
||||||
|
|
||||||
|
## padUpdated
|
||||||
|
Called from: src/node/db/Pad.js
|
||||||
|
|
||||||
|
1. pad - the pad instance
|
||||||
|
|
||||||
|
This hook gets called when an existing pad was updated.
|
||||||
|
|
||||||
|
## padRemoved
|
||||||
|
Called from: src/node/db/Pad.js
|
||||||
|
|
||||||
|
1. pad - the pad instance
|
||||||
|
|
||||||
|
This hook gets called when an existing pad was removed/deleted.
|
||||||
|
|
||||||
## socketio
|
## socketio
|
||||||
Called from: src/node/hooks/express/socketio.js
|
Called from: src/node/hooks/express/socketio.js
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue