taqueci / redmine_wysiwyg_editor

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

Fix empty text_area on iOS #148

Closed nanego closed 2 years ago

nanego commented 2 years ago

Hi @taqueci.

It seems that in some conditions (when using Textile, 'text' mode, on iOS), the function "setTextContent" clear the value of the textarea. This happens when "editor.getContent" returns no value.

That's why I propose this simple patch to resolve the issue #145.

We should not override the current value when getContent returns an empty string.

Thank you for considering this update.

taqueci commented 2 years ago

Thank you!