Update api.md

This commit is contained in:
Roni Lehto 2021-04-07 18:25:02 +00:00
parent 277d1cdc92
commit 85f1a89210

View File

@ -45,7 +45,21 @@ The messageData object will be converted to JSON and passed as a parsed object t
### events
* `fileOpened`
* Called when a file has been succesfully opened
* Event data:
* `file` - the absolute path to the file
* `content` - a brief content description of the file
* `fileSaved`
* Called when a file has been succesfully saved
* Event data:
* `file` - the absolute path to the file
## Frontend
### events
* `formulaRender`
* Called when a formula is sent to the renderer
* Event data:
* `latex` - the LaTeX input, **can be modified**