BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

paste unformatted shortcut

Open YousefED opened this issue 1 year ago • 11 comments

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

YousefED avatar Apr 23 '25 13:04 YousefED

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!

Eli4479 avatar May 25 '25 05:05 Eli4479

Sure, feel free to submit a pull request!

nperez0111 avatar May 25 '25 09:05 nperez0111

Hi @nperez0111,

I’ve tested both Paste and Paste without formatting, and both are working as expected.

Here’s the screenshot for reference:
Paste behavior

Here's the screenshot for how it works in Google Docs:
Gdoc Paste behavior

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 avatar May 26 '25 04:05 Eli4479

@Eli4479 so you implemented the shortcuts? Did you submit a PR for this?

nperez0111 avatar May 26 '25 16:05 nperez0111

@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!

Eli4479 avatar May 27 '25 02:05 Eli4479

you're right, this is implemented here: https://github.com/ProseMirror/prosemirror-view/blob/a72140e2113aebbd4c76d88ab43cbe7dfc838dd7/src/input.ts#L652

fyi @rvveber

YousefED avatar Jun 20 '25 07:06 YousefED

Paste unformatted keyboard shortcut seems not working in latest version.

On official demo using Chrome on Mac:

  1. Select bold text
  2. Paste selection with cmd + shift + v
  3. Pasted content still bold

https://github.com/user-attachments/assets/b45a5815-f52f-4d1e-af52-7b15f25c3efa

davehuang-tw avatar Feb 07 '26 06:02 davehuang-tw

@sailor95, what browser were you using to find this? I've seen that safari on mac seems to have this problem still

nperez0111 avatar Feb 09 '26 08:02 nperez0111

@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.

davehuang-tw avatar Feb 09 '26 09:02 davehuang-tw

Right, I think there is a difference between the content pasted from editor content, vs external content here. Re-opening

nperez0111 avatar Feb 09 '26 15:02 nperez0111

@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....

woutervroege avatar Feb 19 '26 19:02 woutervroege