Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with the Redmine WYSIWYG Editor plugin #97

Open
albrechtd opened this issue Apr 15, 2024 · 0 comments
Open

Compatibility with the Redmine WYSIWYG Editor plugin #97

albrechtd opened this issue Apr 15, 2024 · 0 comments

Comments

@albrechtd
Copy link

Summary

The plugin is apparently not compatible with the Redmine WYSIWYG Editor plugin. I reported this WYSIWYG Editor issue, but it seems not easy to fix it there, so I kindly ask for more insight.

Description

Using the Issue Templates and WYSIWYG Editor plugins together, selecting a template throws the following Javascript exception in Firefox. The expected operation (fill in the template) is not performed in the WYSIWYG (“Visual”) editor:

Uncaught (in promise) TypeError: ns.setRelatedLink is not a function
    replaceTemplateValue https://redmine/redmine/plugin_assets/redmine_issue_templates/javascripts/issue_templates.js:195
    replaceTemplateValue https://redmine/redmine/projects/it-support/issues/new:235
    loadTemplate https://redmine/redmine/plugin_assets/redmine_issue_templates/javascripts/issue_templates.js:143
issue_templates.js:195:8

I presume this is related to the code in the WYSIWYG Editor which tries to catch (?) the new template. The same issue occurs when replacing or removing the template, btw.

Please note that these two plugins did actually work together (see this WYSIWYG Editor issue).

Environment

  • Environment:
    • OS: Debian Bookworm
    • Redmine version: 5.0.4.stable (the deb package coming w/ Bookworm)
    • Ruby version: 3.1.2-p20 (2022-04-12) [x86_64-linux-gnu]
    • Rails version: 6.1.7.3
  • Database adapter: PostgreSQL (postgresql-16 16.2-1.pgdg120+2)
  • Redmine plugins (relevant ones only):
    • redmine_issue_templates v. 1.1.2
    • redmine_wysiwyg_editor v. 0.32.0

Visual Proof / Screenshot

See message (from the browser's JS console) above.

Expected Results

Both plugins should work together…

Actual Results

See above.

Workaround

Using this timeout hack gives a usable (afaict) result, but IMHO this is not a proper solution for the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant