editor.js
editor.js copied to clipboard
[Bug] Cannot read properties of undefined (reading 'holder')
Describe a bug.
Steps to reproduce:
- Go to https://codepen.io/applegrew/pen/RwMbqdo
- Open browser console and click within the black rectangle randomly. You will see the error mentioned here.
- Click on "Readonly" checkbox to uncheck it and you will see that clicking inside the box still results into this error.
Expected behavior: There should be no JS error.
Screenshots:
Device, Browser, OS: Chrome on MacOS
Editor.js version: 2.25.0
Plugins you use with their versions: None
same question when 'blocks' property is empty
I'm running into what I think is the same issue.
Use blocks: [{ type: "paragraph", data: {} }]
I've got same error. any updates ?
Any news?
Use
...
data: {
time: (new Date()).getTime(),
version: '2.25.0',
blocks: [{
type: 'paragraph',
data: {
text: '<a></a>'
}
}]
}
...
I also reproduce with editor.blocks.renderFromHTML('<p></p>');
without the "readonly" switch, see this codepen:
https://codepen.io/antoine_ol/pen/BaGKaKE
Open the browser console and click anywhere in the page. You will see errors.
Add any content inside the <p>
tag (e.g. <p>a</p>
) and it will work. But it fails with empty paragraph content. It not only shows an error in the console, but also fails to render the editor, which is crashed.
i have the same issue, any update ?
same issue here, it is when i set the the data dynamically with the editor.render({...}) and in fact when it is empty it throw that same error
same trouble here! also editor.render({...})
I got this same issue and turns out it was because i had applied a tune to the paragraph component but the tune had not been registered (I commented it out while testing something else.)
When Bolcks is set to [], an error will also be reported
bumping 😭
version 2.27.2 don't have this problem and need actualization node js to 18