paste unformatted shortcut
For pasting something un-formatted the shortcut is usually: ctrl + shift + v or cmd + shift + v [source]
(suggested here) https://github.com/TypeCellOS/BlockNote/issues/1399#issuecomment-2809618891
Hi @YousefED! This is a great feature request and definitely something that would enhance the editing experience.
I'd like to take this up — could you please assign the issue to me?
Thanks!
Sure, feel free to submit a pull request!
Hi @nperez0111,
I’ve tested both Paste and Paste without formatting, and both are working as expected.
Here’s the screenshot for reference:
Here's the screenshot for how it works in Google Docs:
Do you want me to remove the links as well, or is there anything else you'd like me to address regarding this issue?
Best regards,
@Eli4479
@Eli4479 so you implemented the shortcuts? Did you submit a PR for this?
@Eli4479 so you implemented the shortcuts? Did you submit a PR for this?
No, I didn't raise a PR, but the shortcuts have already been implemented. It seems the issue is still open unnecessarily. Please feel free to review the implementation, and if everything looks good, you can go ahead and close the issue.
Thanks!
you're right, this is implemented here: https://github.com/ProseMirror/prosemirror-view/blob/a72140e2113aebbd4c76d88ab43cbe7dfc838dd7/src/input.ts#L652
fyi @rvveber
Paste unformatted keyboard shortcut seems not working in latest version.
On official demo using Chrome on Mac:
- Select bold text
- Paste selection with
cmd + shift + v - Pasted content still bold
https://github.com/user-attachments/assets/b45a5815-f52f-4d1e-af52-7b15f25c3efa
@sailor95, what browser were you using to find this? I've seen that safari on mac seems to have this problem still
@sailor95, what browser were you using to find this? I've seen that safari on mac seems to have this problem still
Chrome on Mac using latest version.
Right, I think there is a difference between the content pasted from editor content, vs external content here. Re-opening
@nperez0111 current behavior is similar to other 👀 tools. As it copies, it copies markdown syntax along with it, which is is re-interpreted when pasting....