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

[BUG] Loading a codeblock into editor, try to highlight some code, and it errors out in console but not crashing.

Open trancethehuman opened this issue 1 year ago • 0 comments

Has this bug been raised before?

  • [X] I have checked "open" AND "closed" issues and this is not a duplicate

Description

The error message: Error: Cannot find a descendant at path [0] in node: {"children":[],"operations":[],"selection":null,"marks":null,"history":{"undos":[],"redos":[]}}

Steps to Reproduce

  1. Load a codeblock element
  2. Try to highlight some text in it first-thing.

Environment

  • OS: MacOS
  • Browser: Chrome

Screenshots

https://github.com/user-attachments/assets/e89cb61d-61ac-4c71-aa15-4cf770cf64ab

Do you want to work on this issue?

No

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

No response

trancethehuman avatar Sep 27 '24 18:09 trancethehuman