Yoopta-Editor
Yoopta-Editor copied to clipboard
[BUG] error editing cell after editor.setEditorValue(YooptaContentValue)
Has this bug been raised before?
- [X] I have checked "open" AND "closed" issues and this is not a duplicate
Description
Hello together 😄 Hope you enjoy your weekend! I came across this bug: I store the content in a DB and when one opens the editor in my web app, it is retrieved and set via: editor.setEditorValue(YooptaContentValue). One example is the element on the screenshot. It is rendered, but when I click on something to change its appearance (e.g. to style it bold), I get this error and the editor crashes. But if I enter new text cells, they work fine. It is just the programmatically set ones that produce the error. This is a bug in my eyes, but if I'm wrong just answer ;)
Steps to Reproduce
getData(id).then((data: DataType) => {
return parseContent(data);
})
.then((res) => {
res && editor.setEditorValue(res);
});
Environment
- OS: macOS
- Browser: ARC (Nextjs React)
Screenshots
Do you want to work on this issue?
No
If "yes" to above, please explain how you would technically implement this
No response