Be more clever about detecting inline context at end of inserted slice
Be more clever about detecting inline context at end of inserted slice

For cursor placement after replaceSelection

ProseMirror/prosemirror-state