taqueci / redmine_wysiwyg_editor

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

Make regex more generic and accept other paths to wiki pages #146

Closed nanego closed 2 years ago

nanego commented 2 years ago

Hello @taqueci I would like to suggest here a change to improve the compatibility with other plugins.

Currently, the plugin has a regex which assumes that all wiki-pages have a URL formatted like this: "projects/name/wiki/"

https://github.com/taqueci/redmine_wysiwyg_editor/blob/8d728c949de1aa409a8833095371399488135448/assets/javascripts/redmine_wysiwyg_editor.js#L931-L932

But I have created another plugin which allows wiki pages to have a different URL, formatted as "projects/name/documentation". (here is this plugin: Redmine Second Wiki/) That's why I would like to make the current regex more generic, and accept other kinds of URLs with different paths.

Thank you for considering my request.

taqueci commented 2 years ago

Thank you!