From b0ee16c2e7fda61dff1afc2ad0f1c5478b998658 Mon Sep 17 00:00:00 2001 From: Tazio <45716542+Tazi0@users.noreply.github.com> Date: Fri, 18 Jun 2021 11:56:30 +0200 Subject: [PATCH] VueRenderer documentation with version 3 --- docs/src/docPages/api/nodes/mention.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/src/docPages/api/nodes/mention.md b/docs/src/docPages/api/nodes/mention.md index 05e2a6fdcee..c4895ec6d61 100644 --- a/docs/src/docPages/api/nodes/mention.md +++ b/docs/src/docPages/api/nodes/mention.md @@ -36,6 +36,21 @@ npm install @tiptap/vue-2 # with Yarn 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 don’t forget to share it with the community.