pubpub / pubpub-editor

A stand alone, extensible WSIWYG editor based on ProseMirror
GNU General Public License v2.0
101 stars 9 forks source link

update: Add and refactor cursor manipulation utilties #19

Closed idreyn closed 5 years ago

idreyn commented 5 years ago

This PR moves the moveSelectionToStart and moveSelectionToEnd functions to a new utility (scoped to cursor at the package level) and adds friends moveToStartOfSelection and moveToEndOfSelection that will be useful in pubpub.

Test plan: npm start and try out the cursorUtilities storybook entry.

isTravis commented 5 years ago

Merged, and published as @pubpub/editor@5.3.6