Open beorn opened 4 years ago
Bug
Cmd-B
Cmd-I
Debugging locally it seems to Editor.node(editor, point.path) in toDOMPoint finds the wrong node when looking for the domPoint of domFocus.
Editor.node(editor, point.path)
toDOMPoint
domPoint
domFocus
It should bold or italicize the c — the same behavior as pressing the formatting buttons in the hovering toolbar.
c
It seems that calling event.preventDefault() if handling the event seems to fix the error at least. I'm not sure if this is the right approach?
event.preventDefault()
Do you want to request a feature or report a bug?
Bug
What's the current behavior?
Cmd-B
orCmd-I
Debugging locally it seems to
Editor.node(editor, point.path)
intoDOMPoint
finds the wrong node when looking for thedomPoint
ofdomFocus
.What's the expected behavior?
It should bold or italicize the
c
— the same behavior as pressing the formatting buttons in the hovering toolbar.