We have a simple-ish, custom blockquote node setup with a NodeView. This NodeView contains a blockquote tag for the contentDOM, and a button. When clicked, the button inserts a new node called author directly after the blockquote tag.
We are experiencing some very weird bugs in certain scenarios:
- When the blockquote has no nodes before it, adding the author, typing some text in the author block, and then removing the text results in the button’s text being added as a paragraph node outside of the NodeView
- When adding a blockquote above another node, clicking the author button results in the node after the NodeView being focussed and the author not being added
Apologies for the lack of description. We aren’t entirely sure what’s going on
This is a minimal reproduction of what’s happening: https://glitch.com/edit/#!/magnificent-draw