Clear the content in the richtext editor so it's empty
Open browser debugger to watch for crash
Extract attached richtext example data from test.rtf.zip
Open test.rtf with any editor that supports richtext
Copy content and paste into the MDXEditor richtext area.
Result: crashes
Uncaught TypeError: Cannot read properties of undefined (reading 'children') at h
Note: Switching to Markdown view in MDXEditor shows empty content.
Desktop (please complete the following information):
OS: MacOS
Browser: Chrome
Additional context
The code is minimized, but I think it's in isParent() when the node parameter is null for some reason.
Describe the bug Pasting nested lists into the richtext editor causes an exception.
To Reproduce Steps to reproduce the behavior:
test.rtf.zip
Uncaught TypeError: Cannot read properties of undefined (reading 'children') at h
Note: Switching to Markdown view in MDXEditor shows empty content.Desktop (please complete the following information):
Additional context The code is minimized, but I think it's in
isParent()
when thenode
parameter is null for some reason.test.rtf.zip