add getSchema & getHtml utility functions to generate HTML from a ProseMirror/tiptap document, without an Editor instance

This commit is contained in:
Hans Pagel
2020-09-03 16:22:08 +02:00
parent 7988be813b
commit e94714a345
5 changed files with 112 additions and 1 deletions

View File

@@ -1,5 +1,19 @@
# Schema
## Get the ProseMirror schema without initializing the editor
```js
import { getSchema } from '@tiptap/core'
const schema = getSchema(extensions)
```
## Generate HTML from ProseMirror JSON without initializing the editor
<demo name="Api/Schema" />
## Old Content
:::warning Out of date
This content is written for tiptap 1 and needs an update.
:::