codex-team / codex-team/editor.js
blocks.render doesn't trigger "onChange"
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
render updates well the editor content but never triggers onChange() against the editor.
Steps to reproduce:
1. new editorJs with onChange() param
```
editor = new EditorJS({
placeholder: 'Start writing...',
autofocus: true,
holder: 'my-editor',
tools: customTools,
onChange: () => {
console.log('Content has been modified');
}
});
```
2. update content with `editor.blocks.render(jsonObject)`
Expected behavior:
triggers onChange
console log with "content has been modified"
Device, Browser, OS:
Chrome
Editor.js version:
latest
Plugins you use with their versions:
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.