mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
Add docs for toolbar controller and pad_editbar
This commit is contained in:
parent
da5970dda3
commit
a69793a203
4 changed files with 107 additions and 2 deletions
|
@ -63,7 +63,46 @@ Things in context:
|
|||
|
||||
This hook gets called upon the rendering of an ejs template block. For any specific kind of block, you can change how that block gets rendered by modifying the content object passed in.
|
||||
|
||||
Have a look at `src/templates/pad.html` and `src/templates/timeslider.html` to see which blocks are available.
|
||||
Available blocks in `pad.html` are:
|
||||
|
||||
* `htmlHead` - after `<html>` and immediately before the title tag
|
||||
* `styles` - the style `<link>`s
|
||||
* `body` - the contents of the body tag
|
||||
* `editbarMenuLeft` - the left tool bar (consider using the toolbar controller instead of manually adding html here)
|
||||
* `editbarMenuRight` - right tool bar
|
||||
* `afterEditbar` - allows you to add stuff immediately after the toolbar
|
||||
* `userlist` - the contents of the userlist dropdown
|
||||
* `loading` - the intial loading message
|
||||
* `mySettings` - the left column of the settings dropdown ("My view"); intended for adding checkboxes only
|
||||
* `mySettings.dropdowns` - add your dropdown settings here
|
||||
* `globalSettings` - the right column of the settings dropdown ("Global view")
|
||||
* `importColumn` - import form
|
||||
* `exportColumn` - export form
|
||||
* `modals` - Contains all connectivity messages
|
||||
* `embedPopup` - the embed dropdown
|
||||
* `scripts` - Add your script tags here, if you really have to (consider use client-side hooks instead)
|
||||
|
||||
`timeslider.html` blocks:
|
||||
|
||||
* `timesliderStyles`
|
||||
* `timesliderScripts`
|
||||
* `timesliderBody`
|
||||
* `timesliderTop`
|
||||
* `timesliderEditbarRight`
|
||||
* `modals`
|
||||
|
||||
`index.html` blocks:
|
||||
|
||||
* `indexWrapper` - contains the form for creating new pads
|
||||
|
||||
## padInitToolbar
|
||||
Called from: src/node/hooks/express/specialpages.js
|
||||
|
||||
Things in context:
|
||||
|
||||
1. toolbar - the toolbar controller that will render the toolbar eventually
|
||||
|
||||
Here you can add custom toolbar items that will be available in the toolbar config in `settings.json`. For more about the toolbar controller see the API section.
|
||||
|
||||
## padCreate
|
||||
Called from: src/node/db/Pad.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue