Skip to content
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

Selection: Clipboard issues with copy/paste operations on Safari #3867

Open
boroskoyo opened this issue Dec 18, 2024 · 0 comments
Open

Selection: Clipboard issues with copy/paste operations on Safari #3867

boroskoyo opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working safari

Comments

@boroskoyo
Copy link

Description

Two related clipboard problems have been identified:

  1. When trying to copy selected blocks using Cmd+C in Safari, a popup appears and nothing gets copied to clipboard. This appears to be related to the copy-to-clipboard package used in the plate-selection plugin.

  2. Cross-browser paste operations are not preserving formatting: When copying blocks from Firefox and pasting into Safari, content is pasted as text/plain instead of text/html.

Environment

  • Plugin version: 40.2.9

Reproduction URL

No response

Reproduction steps

Copy problem:
1. Go to 'https://platejs.org/' on Safari
2. Drag and select one or many blocks
3. Press CMD+C to copy
4. See related popup

Paste problem
1. Go to 'https://platejs.org/' on Firefox
2. Drag and select multiple blocks
3. Press CMD+C to copy
4. Go to 'https://platejs.org/' on Safari
5. Press CMD+V to paste into current editor
6. See that it pastes as text/plain not text/html as expected

Plate version

40.3.1

Slate React version

0.110.1

Screenshots

https://cdn.discordapp.com/attachments/1026256206915965078/1318896657588289576/Screenshot_2024-12-18_at_14.00.37.png?ex=6763fdbb&is=6762ac3b&hm=1390b896e18ce66d69743fc0669a563cd33d891ab81e574c40389417ac2a1cb8&

Logs

No response

Browsers

Safari

@boroskoyo boroskoyo added the bug Something isn't working label Dec 18, 2024
@zbeyens zbeyens added the safari label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working safari
Projects
None yet
Development

No branches or pull requests

2 participants