taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
114 stars 27 forks source link

Upload function targets the first inputfile of the page #138

Closed maudov closed 2 years ago

maudov commented 2 years ago

Hello,

The upload function 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 bug with the redmine_wysiwyg_editor targeting the wrong form.

image

We managed to fix this issue, by adding an inputFile property that target the closest form instead of the first input file. image

mathieu-mbru commented 2 years ago

https://github.com/taqueci/redmine_wysiwyg_editor/pull/140