update docs

This commit is contained in:
Philipp Kühn
2020-11-16 10:03:12 +01:00
parent c87f49c1fe
commit dac2434cd3
6 changed files with 69 additions and 69 deletions

View File

@@ -23,20 +23,20 @@ You dont have to use it, but we prepared a `@tiptap/vue-starter-kit` which in
Youre free to create your own extensions for tiptap. Here is the boilerplate code thats need to create and register your own extension:
```js
import { createExtension } from '@tiptap/core'
import { Extension } from '@tiptap/core'
const CustomExtension = createExtension({
const CustomExtension = Extension.create({
// Your code here
})
const editor = new Editor({
extensions: [
// Register your custom extension with the editor.
CustomExtension(),
CustomExtension,
// … and dont forget all other extensions.
Document(),
Paragraph(),
Text(),
Document,
Paragraph,
Text,
// …
],
```
@@ -49,7 +49,7 @@ ProseMirror has a fantastic eco system with many amazing plugins. If you want to
```js
import { history } from 'prosemirror-history'
const History = createExtension({
const History = Extension.create({
addProseMirrorPlugins() {
return [
history(),