taqueci / redmine_wysiwyg_editor

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

unexpected behavior when we update an issue or a project from a mobile phone #141

Closed mathieu-mbru closed 2 years ago

mathieu-mbru commented 2 years ago

Hello! We experienced a bug for iOS (iPhone) When we update an issue or a project from a mobile phone (case of textil mode activated) the field description will be deleted Because the function _changeMode is called in init_instance_callback Since the function _changeMode fire the event blur that call _setTextContent In this case self._editor.getContent() is empty We suggest either delete the line 376 image Or add the line 278 in the function _changeMode image

taqueci commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus

taqueci commented 2 years ago

Hi @mathieu-mbru

The issue has been fixed in the latest version. Please check in your environment.

mathieu-mbru commented 2 years ago

Hi Sorry, the problem still exists when the mode textile is enabled image image image

nanego commented 2 years ago

Hello. I can confirm, with the latest version, I still see an empty description field when I use an iPhone to edit an issue. The applied correction may not cover all the cases.

taqueci commented 2 years ago

Thank you for your information. I have created new issue #145.