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

Correction to editor paste event #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KeyboardRage
Copy link

According to the documents, the name of the event for paste is onPaste, but it is actually paste https://github.com/ueberdosis/tiptap/blob/develop/packages/core/src/extensions/paste.ts#L16

Additionally, it passes a single object with properties rather than a list of arguments

Corrected "onPaste" event to be "paste"
Corrected parameters and added editor
Copy link

vercel bot commented Nov 28, 2024

@KeyboardRage is attempting to deploy a commit to the Tiptap Team on Vercel.

A member of the Team first needs to authorize it.

@KeyboardRage
Copy link
Author

It might be worth looking into if the onPaste option passed into the editor is also correct, and if it possibly also passes the editor itself. I have not checked this 😄

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

Successfully merging this pull request may close these issues.

1 participant