copyImageFromClipboard function targets the first file input of the page and may conflict with other plugins
|Assignee:||Marius BALTEANU||% Done:|
The function copyImageFromClipboard) targets the first file input of the page and may conflict with other plugins.
On our redmine instance we use the redmine_comments plugin (https://github.com/jbbarth/redmine_comments) that adds the ability to write private note and create a new form.
We experienced a problem as shown in the image1 and image2 ,and when we click on comment as shown in image3
We managed to fix this issue, by replace the line
`var inputEl = $('input:file.filedrop').first();`
`var inputEl = $(this).closest("form").find('input:file.filedrop');`
Thank you for your help
#7 Updated by Marius BALTEANU about 1 month ago
Yazan Al aeddin wrote:
Did you install the plugin (redmine_tiny_features)?
Because the bug is fixed by overriding the method (copyImageFromClipboard).
I only tried to install https://github.com/jbbarth/redmine_comments and I saw a new role permission, but nothing else in the UI.