-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pasting issues #260
Comments
🤔 perhaps these 2 need to return |
Doh. never linked the lines, but i think i found the issue regardless. Fix here: |
Unfortunately while now the double-paste of regular text is fixed, my paste-based extensions are now not functioning again. Is there anything I can provide to help troubleshoot the paste-based extension interruption? |
@bjhess ideally one of the failing extensions would help tremendously |
The failing extensions are:
If you need me to try to bring one or more of those into a Rhino branch, I can, but I might not be able to get to it until next week. Thank you! |
I did try to add the YouTube extension to my fork of rhino-editor tonight, but I couldn't quite crack it. No errors, but the extension didn't seem to be doing anything, so I probably did it wrong. |
@bjhess I think I know the problem now. I think I know whats happening. https://prosemirror.net/docs/ref/#view.EditorProps.handlePaste
It seems like dispatching a custom event like im currently doing isn't the greatest way since the function is synchronous so no way to check I think I need to move all the transforming code into a |
With the recent improvements and bugfixes on pasting, it seems a new bug has appeared. On 0.16.3 I noticed weird behavior pasting with the TipTap YouTube extension (a paste leads to both the link and the embed appearing) and some odd behavior with our custom Markdown processing paste extension.
So I wondered if regular text pasted as expect? It appears not. You'll notice that the text in my example here gets pasted twice, and the duplicate version of the paste seems to have newlines stripped or something of that nature.
CleanShot.2025-02-06.at.19.25.33.mp4
I'm guessing if the text-pasting bug is fixed it will also resolve the bugs with pasting extensions.
Thank you!
The text was updated successfully, but these errors were encountered: