codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.52k stars 2.08k forks source link

[Bug] api.blocks.render empty blocks cause "Cannot read property 'holder' of undefined" #1740

Open cdllqos opened 3 years ago

cdllqos commented 3 years ago

Describe a bug.

Steps to reproduce:

  1. When editor is prepared
  2. Call api.blocks.render({blocks:[]})
  3. Click editor,throw Cannot read property 'holder' of undefined

Expected behavior: editor works no error

Screenshots: image

Device, Browser, OS:

Editor.js version: 2.22.2

Plugins you use with their versions: no plugins

christopher-caldwell commented 2 years ago

YES! I thought I was insane, the same thing is happening to me with v2.22.2

anstapol commented 2 years ago

Same here...

eyalcohen4 commented 2 years ago

Same here, does someone found a workaround? Need to access the holder of a tool