Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blocks.render doesn't trigger "onChange" #2873

Open
thecliffparis opened this issue Nov 19, 2024 · 0 comments
Open

blocks.render doesn't trigger "onChange" #2873

thecliffparis opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@thecliffparis
Copy link

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');
            }
});
  1. 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant