basecamp / basecamp/trix

Pasting an image from Safari does not work

Open
#979 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

When using Firefox or Chrome you can copy an image and paste it into a trix editor and it will become an inline image, when using Safari this does not work.

##### Steps to Reproduce

1. Look up any image
2. Open the context menu and click "Copy Image"
3. Paste into your trix editor4.

You can see these steps performed in both Safari and Firefox in the attached videos.

Safari (where it does not work):

https://user-images.githubusercontent.com/72702/176124974-c2555788-a000-40d7-8115-b4b492db014f.mov

Firefox (where it works):

https://user-images.githubusercontent.com/72702/176126854-a3c2e034-34bc-45cb-8314-9f23d8c51793.mov

##### Details

* Trix version: 1.3.1
* Browser name and version: Safari 15.5 (17613.2.7.1.8)
* Operating system: Mac OS Monterey 12.4

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Trix 1.3.1 by copying an image in Safari 15.5 and pasting it into the editor, then compare the same steps in Firefox or Chrome. Trace the editor's paste handling to identify the browser difference; done means a copied Safari image becomes an inline image as it does in the other browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.