outline / rich-markdown-editor

The open source React and Prosemirror based markdown editor that powers Outline. Want to try it out? Create an account:
https://www.getoutline.com
BSD 3-Clause "New" or "Revised" License
2.87k stars 592 forks source link

Editor instance throws a RangeError: Position -1 out of range if rendered within a <li> element #420

Closed raunaqgupta closed 3 years ago

raunaqgupta commented 3 years ago

Instantiating the editor within a <li> element throws the error:

RangeError: Position -1 out of range

To Reproduce

  1. Instantiate the editor within a <li> element
  2. Mouseover the editor

Expected behavior The editor should be editable (if readOnly is set to false).

Version 11.0.10

Screenshots image

Desktop (please complete the following information):

Notes

tommoor commented 3 years ago

Is the LI the direct parent of the editor or just somewhere up the tree?

raunaqgupta commented 3 years ago

Is the LI the direct parent of the editor or just somewhere up the tree?

Several (> 1) levels above the editor instance.