Modify

Opened 16 months ago

Closed 5 months ago

Last modified 5 months ago

#13044 closed defect (fixed)

Image on clipboard cannot be pasted on Trac 1.2

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Component: TracDragDropPlugin
Severity: normal Keywords:
Cc: trac-hacks.org@… Trac Release: 1.2

Description

The feature works fine on Trac 1.0 but doesn't on Trac 1.2 (at least, with Firefox).

Attachments (0)

Change History (10)

comment:1 Changed 14 months ago by anonymous

I can confirm that it does not work with Firefox. Works fine with Chrome. I am using the latest plugin version from https://trac-hacks.org/svn/tracdragdropplugin/0.12

comment:2 Changed 14 months ago by Robert Becker

Cc: trac-hacks.org@… added

comment:3 Changed 14 months ago by Alexey

Confirm bug in Firefox and Trac 1.2

comment:4 in reply to:  3 Changed 14 months ago by Jun Omae

Replying to Alexey:

Confirm bug in Firefox and Trac 1.2

I know.

comment:5 Changed 13 months ago by anonymous

Do you need help fixing this?

comment:6 Changed 13 months ago by Robert Becker

Last comment was by me, did not noticed being logged out.

comment:7 Changed 5 months ago by Robert Becker

Sadly even with Quantum the issue still exists. I noticed that for the paste event to fire, Firefox needs some kind of focus. As a proof of concept, injecting an input field in the paste container div makes FF fire the event properly: https://www.dropbox.com/s/a9iyk85oyie4sn9/Screenshot%202017-11-20%2018.03.57.png?dl=0

So maybe replacing the "Paste an image to attach" with an input is the easiest fix for this problem.

comment:8 in reply to:  7 Changed 5 months ago by Jun Omae

Replying to Robert Becker:

So maybe replacing the "Paste an image to attach" with an input is the easiest fix for this problem.

No. Only text can be pasted on <input type="text" > field.

comment:9 Changed 5 months ago by Jun Omae

Resolution: fixed
Status: newclosed

In 16998:

TracDragDropPlugin: fix pasting image on clipboard doesn't work on Trac 1.2 (closes #13044)

comment:10 Changed 5 months ago by Robert Becker

Thanks for fixing this!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.