Description
prosemirror-dev-tools is a set of developer tools for ProseMirror, the rich text editor toolkit. You install the prosemirror-dev-tools package from npm and wrap your EditorView instance with its applyDevTools method. The tool then lets you inspect the document, including every node and mark, and the current selection, with its position, head and anchor. It shows the active marks and document statistics such as size and child count. A history view lets you move through the editor's state over time, see the selection content at a given point, and view selection diffs. You can inspect the state of each ProseMirror plugin, and the document schema with its nodes and marks. A structure view draws the document tree with positions at the start and end of every node. Snapshots save the current editor state and restore it later, and the state is kept in local storage. The project has a demo and example setup, welcomes contributions that follow commitizen conventions, and is released under the MIT license. It suits developers building editors on ProseMirror who need to see what the editor state looks like while debugging.…
Highlights
- Inspect document nodes, marks, selection and plugin state
- Travel through document history and compare selections
- Schema and document tree views
- Save and restore editor state with snapshots
- Install from npm and wrap your EditorView
Ratings & Reviews
No ratings yet
Be the first to rate Prosemirror Dev Tools.
People also visit
Prosemirror Dev Tools FAQ
What is prosemirror-dev-tools?
Developer tools for ProseMirror, the editor toolkit. They show what is happening inside your editor state while you build with it.
How do I add it?
Install the prosemirror-dev-tools package from npm, then wrap your EditorView instance in the applyDevTools method.
What can I inspect?
The document with its nodes and marks, the selection, active marks, document stats, each plugin's state, the schema, and the document structure.
Can I restore a previous state?
Yes. Snapshots save the current editor state and restore it later, and the history view lets you move between earlier states.
What license is it under?
MIT.
What are the best Prosemirror Dev Tools alternatives?
Popular alternatives to Prosemirror Dev Tools include Canidev.tools, Vue.js devtools and MD Preview. See all Prosemirror Dev Tools alternatives






