mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-04 11:49:02 +08:00
40 lines
961 B
Markdown
40 lines
961 B
Markdown
|
---
|
||
|
tableOfContents: true
|
||
|
---
|
||
|
|
||
|
# Accessing ProseMirror internals
|
||
|
|
||
|
The ProseMirror internals are packaged in the `@tiptap/pm` package that you need to install with `npm install @tiptap/pm`. If you already have this done you can skip the following step.
|
||
|
|
||
|
```bash
|
||
|
npm i @tiptap/pm
|
||
|
```
|
||
|
|
||
|
After that you can access all internal ProseMirror packages like this:
|
||
|
|
||
|
```js
|
||
|
// this example loads the EditorState class from the ProseMirror state package
|
||
|
import { EditorState } from '@tiptap/pm/state'
|
||
|
```
|
||
|
|
||
|
The following packages are available:
|
||
|
|
||
|
- `@tiptap/pm/changeset`
|
||
|
- `@tiptap/pm/collab`
|
||
|
- `@tiptap/pm/commands`
|
||
|
- `@tiptap/pm/dropcursor`
|
||
|
- `@tiptap/pm/gapcursor`
|
||
|
- `@tiptap/pm/history`
|
||
|
- `@tiptap/pm/inputrules`
|
||
|
- `@tiptap/pm/keymap`
|
||
|
- `@tiptap/pm/markdown`
|
||
|
- `@tiptap/pm/menu`
|
||
|
- `@tiptap/pm/model`
|
||
|
- `@tiptap/pm/schema-basic`
|
||
|
- `@tiptap/pm/schema-list`
|
||
|
- `@tiptap/pm/state`
|
||
|
- `@tiptap/pm/tables`
|
||
|
- `@tiptap/pm/trailing-node`
|
||
|
- `@tiptap/pm/transform`
|
||
|
- `@tiptap/pm/view`
|