MCPcopy Index your code
hub / github.com/d4rkr00t/prosemirror-dev-tools

github.com/d4rkr00t/prosemirror-dev-tools @v4.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.3.0 ↗ · + Follow
143 symbols 320 edges 61 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

prosemirror-dev-tools

NPM Version

License

Github Issues

Travis Status

Commitizen Friendly

Table of Content

Quick Start

NPM Way

Install prosemirror-dev-tools package from npm:

npm install --save-dev prosemirror-dev-tools

Wrap EditorView instance in applyDevTools method:

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

prosemirror-dev-tools state tab

History

  • Inspect document changes over time
  • Time travel between states
  • See selection content for particular state in time
  • See selection diff

prosemirror-dev-tools history tab

Plugins

Inspect state of each plugin inside prosemirror.

prosemirror-dev-tools plugins tab

Schema

Inspect current document schema with nodes and marks.

prosemirror-dev-tools schema tab

Structure

Visual representation of current document tree with positions at the beginning and the end of every node.

prosemirror-dev-tools structure tab

Snapshots

Snapshots allow you to save current editor state and restore it later. State is stored in local storage.

prosemirror-dev-tools snapshots tab

Demo

Contributing

Contributions are highly welcome! This repo is commitizen friendly — please read about it here.

License

  • MIT : http://opensource.org/licenses/MIT

Extension points exported contracts — how you extend this code

SearchBarProps (Interface)
(no doc)
src/components/search-bar.tsx

Core symbols most depended-on inside this repo

locateTab
called by 10
tests/page-object.ts
goto
called by 6
tests/page-object.ts
getValueString
called by 4
src/components/json-diff.tsx
formatTimestamp
called by 4
src/tabs/history.tsx
diff
called by 3
src/state/json-diff-main.ts
pad
called by 3
src/tabs/history.tsx
isPrevious
called by 3
src/tabs/history.tsx
filterProps
called by 2
src/utils/format-selection-object.ts

Shape

Function 126
Class 8
Method 8
Interface 1

Languages

TypeScript100%

Modules by API surface

src/tabs/structure.tsx14 symbols
src/components/json-diff.tsx14 symbols
src/tabs/state.tsx11 symbols
src/tabs/history.tsx11 symbols
src/tabs/plugins.tsx6 symbols
src/components/tabs.tsx6 symbols
tests/page-object.ts5 symbols
src/tabs/snapshots.tsx5 symbols
src/state/json-diff-worker.ts5 symbols
src/utils/find-node.ts4 symbols
src/state/idle-scheduler.ts4 symbols
src/state/history.ts4 symbols

For agents

$ claude mcp add prosemirror-dev-tools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page