add note why we had to use our own cordsAtPos implementation

This commit is contained in:
Chrissi2812
2019-03-07 18:15:45 +01:00
parent f490ca1469
commit 8ddc0c016a

View File

@@ -81,6 +81,8 @@ class Menu {
const { from, to } = state.selection
// These are in screen coordinates
// We can't use EditorView.cordsAtPos here because it can't handle linebreaks correctly
// See: https://github.com/ProseMirror/prosemirror-view/pull/47
const start = coordsAtPos(view, from)
const end = coordsAtPos(view, to, true)