Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect documentation example for mentions / Vue 3 #1254

Closed
power-spike opened this issue May 3, 2021 · 0 comments
Closed

Incorrect documentation example for mentions / Vue 3 #1254

power-spike opened this issue May 3, 2021 · 0 comments

Comments

@power-spike
Copy link

https://www.tiptap.dev/examples/suggestions/

                onStart: props => {
                  component = new VueRenderer(MentionList, {
                    parent: this,
                    propsData: props,
                  })

This code from the mentions example (from the url above) throws an error when used on Vue3. (this.editor is undefined).

Updating the code to the following fixes the code - and works without error.

                  onStart: props => {
                      component = new VueRenderer(MentionList, {
                          props: props,
                          editor: this.editor,
                      })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants