taqueci / redmine_wysiwyg_editor

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

Improve compatibility with other plugins #77

Closed nanego closed 4 years ago

nanego commented 4 years ago

Hello

To improve compatibility with other plugins (which load text fields through Ajax calls), we could always re-init wysiwig editor after successful Ajax calls. Moreover, the code is simpler this way.

Thank you

taqueci commented 4 years ago

Hi @nanego

Thank you for your suggestion. However, the initialization should be done only when needed.

Let me consider it.

taqueci commented 4 years ago

Note to self: The initialization is skipped if it has already been done. https://github.com/taqueci/redmine_wysiwyg_editor/blob/0.13.0/assets/javascripts/redmine_wysiwyg_editor.js#L119

nanego commented 4 years ago

Thank you @taqueci