Make sure the editor has focus when testing for endOfTextblock
Make sure the editor has focus when testing for endOfTextblock

This is unfortunate (as it will leak focus/blur events) but seems
to be hard to avoid.

ProseMirror/prosemirror-view,jspn500/prosemirror-view