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

[Bug] Cannot read property 'updateCurrentInput' of undefined when adding two instances of the editor #1557

Open
rama-adi opened this issue Feb 22, 2021 · 1 comment
Labels

Comments

@rama-adi
Copy link

rama-adi commented Feb 22, 2021

Describe a bug.
when I try to add 2 instances, the editor throws an error:

editorjs@latest:6 Uncaught TypeError: Cannot read property 'updateCurrentInput' of undefined
    at y.value (editorjs@latest:6)
    at k.value (editorjs@latest:6)
    at HTMLDocument.<anonymous> (editorjs@latest:6)

Steps to reproduce:

  1. add the EditorJS script
  2. Add 2 divs with different ID (ex: editor1 and editor2)
  3. Initialize those divs with the editor
  4. try clicking the (+) icon and adding some blocks
  5. Check console

Expected behavior:
No errors when creating multiple instances

Screenshots:
image

Device, Browser, OS:
Windows 10, Chrome Version 88.0.4324.150 (Official Build) (64-bit)

Editor.js version:
Latest

Plugins you use with their versions:
No plugins, straight from the CDN

@rama-adi rama-adi added the bug label Feb 22, 2021
@elbakerino
Copy link

Duplicate to #1503

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

2 participants