replace NodeExtension with Node, replace MarkExtension with Mark

This commit is contained in:
Philipp Kühn
2020-11-16 11:19:43 +01:00
parent b44aafa97c
commit 8a7603edaf
31 changed files with 105 additions and 99 deletions

View File

@@ -44,9 +44,9 @@ new Editor({
In case youve built some custom extensions for your project, youre required to rewrite them to fit the new API. No worries, you can keep a lot of your work though. The `schema`, `commands`, `keys`, `inputRules` and `pasteRules` all work like they did before. Its just different how you register them.
```js
import { NodeExtension } from '@tiptap/core'
import { Node } from '@tiptap/core'
const CustomExtension = NodeExtension.create({
const CustomExtension = Node.create({
name: 'custom_extension'
defaultOptions: {