ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.53k stars 334 forks source link

Copy a table from a Word document with a link in it #1444

Closed kbin24 closed 5 months ago

kbin24 commented 5 months ago

Copy a table from a Word document with a link in it. But after copying it into TIptap, other text will be converted into links.

Actual in Word Document

企业微信截图_20240202135802

In Tiptap

12313123213

Reproduction steps

  1. Add a table with links in a Word document
  2. Copy Table into Tiptap (https://templates.tiptap.dev/NRmPrnCGJn)
marijnh commented 5 months ago

Note that this is not the Tiptap bug tracker. Does the same behavior reproduce when you paste into a plain ProseMirror editor? Can you show me the HTML that is being pasted (for example by setting up a dummy page with a paste event handler that logs `event.clipboardData.getData("text/html")').

kbin24 commented 5 months ago

Note that this is not the Tiptap bug tracker. Does the same behavior reproduce when you paste into a plain ProseMirror editor? Can you show me the HTML that is being pasted (for example by setting up a dummy page with a paste event handler that logs `event.clipboardData.getData("text/html")').

Sorry, this error only occurs in Tiptap at present, and is not a ProseMirror bug.