Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

[BUG] error editing cell after editor.setEditorValue(YooptaContentValue)

Open Quietscher opened this issue 1 year ago • 8 comments

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

Bildschirmfoto 2024-09-29 um 08 18 44 Bildschirmfoto 2024-09-29 um 08 18 57 image

Do you want to work on this issue?

No

If "yes" to above, please explain how you would technically implement this

No response

Quietscher avatar Sep 29 '24 06:09 Quietscher