https://github.com/d4rkr00t/prosemirror-dev-tools
Developer Tools for ProseMirror
https://github.com/d4rkr00t/prosemirror-dev-tools
developer-tools devtools prosemirror prosemirror-dev
Last synced: 6 months ago
JSON representation
Developer Tools for ProseMirror
- Host: GitHub
- URL: https://github.com/d4rkr00t/prosemirror-dev-tools
- Owner: d4rkr00t
- Created: 2017-04-03T08:27:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-08T04:39:13.000Z (9 months ago)
- Last Synced: 2025-04-02T02:09:08.115Z (7 months ago)
- Topics: developer-tools, devtools, prosemirror, prosemirror-dev
- Language: TypeScript
- Homepage:
- Size: 1.91 MB
- Stars: 327
- Watchers: 3
- Forks: 40
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README

## Table of Content
- [Table of Content](#table-of-content)
- [Quick Start](#quick-start)
- [NPM Way](#npm-way)
- [Features](#features)
- [State](#state)
- [History](#history)
- [Plugins](#plugins)
- [Schema](#schema)
- [Structure](#structure)
- [Snapshots](#snapshots)
- [Demo](#demo)
- [Contributing](#contributing)
- [License](#license)## Quick Start
### NPM Way
Install `prosemirror-dev-tools` package from npm:
```sh
npm install --save-dev prosemirror-dev-tools
```Wrap `EditorView` instance in applyDevTools method:
```js
import applyDevTools from "prosemirror-dev-tools";const view = new EditorView /*...*/();
applyDevTools(view);
```## Features
### State
- Inspect document – all nodes and marks
- Inspect selection – position, head, anchor and etc.
- Inspect active marks
- See document stats – size, child count
### History
- Inspect document changes over time
- Time travel between states
- See selection content for particular state in time
- See selection diff
### Plugins
Inspect state of each plugin inside prosemirror.

### Schema
Inspect current document schema with nodes and marks.

### Structure
Visual representation of current document tree with positions at the beginning
and the end of every node.
### Snapshots
Snapshots allow you to save current editor state and restore it later. State is
stored in local storage.
## Demo
- [Demo & Example Setup](https://codesandbox.io/s/l9n6667ooz)
## Contributing
Contributions are highly welcome! This repo is commitizen friendly — please read
about it [here](http://commitizen.github.io/cz-cli/).## License
- **MIT** : http://opensource.org/licenses/MIT