Open in app

Sign In

Write

Sign In

Ana Chang
Ana Chang

4 Followers

Home

About

Apr 22, 2022

Using React or Redux state in a ProseMirror Plugin

Suppose you have a ProseMirror text editor inside a React UI. Now you are writing a ProseMirror plugin, but you need access to some state from outside of ProseMirror, like from React or Redux. How do you have access to the latest values of that state without killing performance? It…

Prosemirror

1 min read

Prosemirror

1 min read


Apr 22, 2022

Processing a ProseMirror Transaction

The ProseMirror text editor library allows you to subscribe to changes in your document which are described by a list of transactions. But how do you figure out what changed in your document given a list of transactions? The transactions give you the positions edited in the old and new…

Prosemirror

1 min read

Prosemirror

1 min read


Apr 22, 2022

Merge Commands on ProseMirror Undo Stack

When using the prosemirror-history package to support “Undo” and “Redo” in your ProseMirror text editor, sometimes you would like to merge multiple commands into one item on the undo stack. …

Prosemirror

1 min read

Prosemirror

1 min read

Ana Chang

Ana Chang

4 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech