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

Preview is not working with Redmine Mentions plugin #82

Open
Jamalc0m opened this issue Feb 12, 2020 · 10 comments
Open

Preview is not working with Redmine Mentions plugin #82

Jamalc0m opened this issue Feb 12, 2020 · 10 comments

Comments

@Jamalc0m
Copy link

When editing or adding new ticket, preview option is not working

@Jamalc0m
Copy link
Author

@taqueci

@taqueci
Copy link
Owner

taqueci commented Feb 12, 2020

Hi @Jamalc0m

Please tell me:

  • Steps to reproduce
  • Redmine version
  • Installed plugins
  • Plugin versions
  • Browser version
  • Console messages of development tool

@Jamalc0m
Copy link
Author

Create new ticket

Type your description

image

Click preview

image

Nothing There!

Browser Chrome - Firefox

Installed plugins & Versions:

image

Console messages of development tool
No error reported!

image

Note:
Normal editor which comes with redmine working fine with no issue.

@taqueci
Copy link
Owner

taqueci commented Feb 13, 2020

Note to self:
The plugin conflicts with Redmine Mentions plugin.
Dockerfile.zip

@Jamalc0m
Copy link
Author

any work around to fix ?

@etoosamoe
Copy link

same problem. we have Mentions plugin installed and preview is not working.
Any fix?

@etoosamoe
Copy link

This trouble appears only in Issue editing\creating. May be there is any option to disable wysiwig in issues, only wiki?

@taqueci
Copy link
Owner

taqueci commented Feb 29, 2020

Hi @etoosamoe

You can hide visual editor in issue creating/editing by:

--- a/app/views/redmine_wysiwyg_editor/_redmine_wysiwyg_editor_partial.html.erb
+++ b/app/views/redmine_wysiwyg_editor/_redmine_wysiwyg_editor_partial.html.erb
@@ -52,6 +52,12 @@ function initRedmineWysiwygEditor() {
     $('.jstTabs, .jstElements, .jstEditor').css('visibility', 'visible');
   };
 
+  if (<%= @issue ? 'true' : 'false' %>) {
+    setVisible();
+    $('#content .jstBlock .jstTabs ul li:not(.tab-elements)').show();
+    return;
+  }
+
   var previewTab = $('.jstTabs .tab-preview');
   var previewButton = $('a[accesskey=r]');

@taqueci taqueci changed the title Preview is not working Preview is not working with Redmine Mentions plugin Feb 29, 2020
@etoosamoe
Copy link

@taqueci thanks! it works. wysiwyg editor now disabled in issues, but works fine (with preview) in Wiki.
nice workaround

@varenius
Copy link

varenius commented Oct 6, 2020

I also have this problem. It would be nice to have the editor working also with preview in issues. Is there any plan to fix this incompatibility?

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

4 participants