basecamp / basecamp/trix

Pasting an animated GIF as a file only copies one frame

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

Description

Pasting an animated GIF stopped working as of #1148, which changed the priority in which `DataTransfer` files are processed.

##### Steps to Reproduce

1. Copy a GIF image from another web page by right-clicking and choosing "Copy Image"
2. Paste the image into a Trix editor
3. Observe that the original GIF file isn't pasted – only the first frame

##### Details

* Trix version: 2.1.5
* Browser name and version: Chrome 128.0.6613.86

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the GIF paste behavior in the Trix editor, then compare the DataTransfer file-processing priority changed in #1148. Done means pasting an animated GIF preserves the original GIF file and its animation instead of only the first frame.

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.