Add postToolbarInit documentation and usage examples

This commit is contained in:
Mikk Andresen 2015-12-18 13:33:49 +02:00
parent e2a0e3cd7f
commit 4ad759dd25
2 changed files with 17 additions and 1 deletions

View File

@ -160,7 +160,19 @@ Things in context:
1. ace - the ace object that is applied to this editor.
2. pad - the pad object of the current pad.
There doesn't appear to be any example available of this particular hook being used, but it gets fired after the editor is all set up.
## postToolbarInit
Called from: src/static/js/pad_editbar.js
Things in context:
1. ace - the ace object that is applied to this editor.
2. toolbar - Editbar instance. See below for the Editbar documentation.
Can be used to register custom actions to the toolbar.
Usage examples:
* [https://github.com/tiblu/ep_authorship_toggle]()
## postTimesliderInit
Called from: src/static/js/timeslider.js

View File

@ -104,6 +104,10 @@ Things in context:
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.
Usage examples:
* [https://github.com/tiblu/ep_authorship_toggle]()
## padCreate
Called from: src/node/db/Pad.js