Update api.md

This commit is contained in:
Roni Lehto 2021-04-07 18:33:58 +00:00
parent 85f1a89210
commit 364dc704b2

View File

@ -59,7 +59,19 @@ The messageData object will be converted to JSON and passed as a parsed object t
### events ### events
* `formulaRender` * `formulaRender`
* Called when a formula is sent to the renderer * Called before a LaTeX formula is sent to the renderer
* Event data: * Event data:
* `latex` - the LaTeX input, **can be modified** * `latex` - the LaTeX input, **can be modified**
* `pageSave`
* Called before saving the contents of a page
* Event data:
* `content` - the HTML content, **can be modified**
* `pageLoad`
* Called before loading a page
* Event data
* `pageId` - the id of the page to be loaded
* `pageLoaded`
* Called when a page has been loaded and is about to be shown
* Event data
* `content` - the HTML content, **can be modified**