VueRenderer documentation with version 3

This commit is contained in:
Tazio
2021-06-18 11:56:30 +02:00
committed by Hans Pagel
parent b6e276f12a
commit 6faf2feec4

View File

@@ -36,6 +36,21 @@ npm install @tiptap/vue-2
# with Yarn # with Yarn
yarn add @tiptap/vue-2 yarn add @tiptap/vue-2
``` ```
If you are using `vue-3` then the `VueRenderer` requires different input:
```js
new VueRenderer(MentionList, {
props: props,
editor: this.editor,
})
```
and not
```js
new VueRenderer(MentionList, {
parent: this,
propsData: props,
})
```
And yes, we plan to support React, too. Meanwhile, you can roll your own `ReactRenderer`, but dont forget to share it with the community. And yes, we plan to support React, too. Meanwhile, you can roll your own `ReactRenderer`, but dont forget to share it with the community.