Browse Source

Doc update

pull/3905/head
Artur Arseniev 4 years ago
parent
commit
467eabc648
  1. 17
      docs/api/editor.md
  2. 2
      src/editor/index.js

17
docs/api/editor.md

@ -719,6 +719,23 @@ Render editor
Returns **[HTMLElement][13]**
## onReady
Trigger a callback once the editor is loaded and rendered.
The callback will be executed immediately if the method is called on the already rendered editor.
### Parameters
* `clb` **[Function][14]** Callback to trigger
### Examples
```javascript
editor.onReady(() => {
// perform actions
});
```
## html
Print safe HTML by using ES6 tagged template strings.

2
src/editor/index.js

@ -731,7 +731,7 @@ export default (config = {}) => {
/**
* Trigger a callback once the editor is loaded and rendered.
* The callback will be executed immediately if the method is called on the already rendered editor.
* @param {Function} clb Event to trigger
* @param {Function} clb Callback to trigger
* @example
* editor.onReady(() => {
* // perform actions

Loading…
Cancel
Save