redmine_wysiwyg_editor icon indicating copy to clipboard operation
redmine_wysiwyg_editor copied to clipboard

Preview is not working with Redmine Mentions plugin

Open Jamalc0m opened this issue 5 years ago • 11 comments

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

Jamalc0m avatar Feb 12 '20 11:02 Jamalc0m

@taqueci

Jamalc0m avatar Feb 12 '20 11:02 Jamalc0m

Hi @Jamalc0m

Please tell me:

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

taqueci avatar Feb 12 '20 14:02 taqueci

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.

Jamalc0m avatar Feb 13 '20 06:02 Jamalc0m

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

taqueci avatar Feb 13 '20 15:02 taqueci

any work around to fix ?

Jamalc0m avatar Feb 18 '20 05:02 Jamalc0m

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

etoosamoe avatar Feb 25 '20 09:02 etoosamoe

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

etoosamoe avatar Feb 27 '20 05:02 etoosamoe

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 avatar Feb 29 '20 02:02 taqueci

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

etoosamoe avatar Feb 29 '20 19:02 etoosamoe

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?

varenius avatar Oct 06 '20 10:10 varenius