Merge pull request #2860 from tiblu/documentation_add_postToolbarInit_and_usage_examples

Add postToolbarInit documentation and usage examples
This commit is contained in:
John McLear 2015-12-21 09:50:24 +00:00
commit 34d757ff7f
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