mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
Lexical API: Updated docs to reflect public event usage
This commit is contained in:
@@ -26,6 +26,15 @@ via its properties:
|
||||
|
||||
Each of these modules, and the relevant types used within, are documented in detail below.
|
||||
|
||||
The API object itself is provided via the [editor-wysiwyg::post-init](./javascript-public-events.md#editor-wysiwygpost-init)
|
||||
JavaScript public event, so you can access it like so:
|
||||
|
||||
```javascript
|
||||
window.addEventListener('editor-wysiwyg::post-init', event => {
|
||||
const {api} = event.detail;
|
||||
});
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## UI Module
|
||||
|
||||
Reference in New Issue
Block a user