pinzolo / redmine_persist_wfmt

redmine_persist_wfmt is a plugin for Redmine that persists wiki format.
MIT License
29 stars 13 forks source link

Avoid overwriting all wiki assets #15

Closed vzvu3k6k closed 5 years ago

vzvu3k6k commented 5 years ago

Currently redmine_persist_wfmt overrides heads_for_wiki_formatter and does not invoke the original one. This implementation conflicts some plugins which override the same method. (e.g. https://github.com/wate/graphviz/)

This patch solves this conflict by making redmine_persist_wfmt invoke the original heads_for_wiki_formatter.

By this change, jstoolbar/textile.js or jstoolbar/markdown.js from Redmine is loaded by the original method, but buttons defined by these files are immediately overwritten by toolbar.js from redmine_persist_wfmt.

ref. https://www.redmine.org/issues/31302

pinzolo commented 5 years ago

Thanks your good work. I merged this.