ProseMirror / prosemirror

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

Copying text on iOS could delete selected text #1370

Closed ocavue closed 1 year ago

ocavue commented 1 year ago

Steps to reproduce

  1. Enable Simplified Chinese keyboard on iOS
  2. Open https://prosemirror.net/examples/basic/ using iOS Safari
  3. Select some words before links
  4. Tap the "Copy" button in the tooltip
  5. Switch to Notes app
  6. Switch back to Safari
  7. The selected text is gone

Video

https://share.cleanshot.com/LsbFbGh1

Environment

marijnh commented 1 year ago

I think this is https://github.com/ProseMirror/prosemirror/issues/1135, which was found to be an iOS issue. Can you confirm that the same happens in a regular contentEditable element?

ocavue commented 1 year ago

Yes I can reproduce it with regular contentEditable element. Here is a reproduction video https://share.cleanshot.com/TBxtB0KB

marijnh commented 1 year ago

Right. So this is not a ProseMirror bug. I'm going to close this issue.