Giter Club home page Giter Club logo

Comments (2)

pr-dtakac avatar pr-dtakac commented on July 18, 2024

I think I found the bug. After my changes it's finally working. I also made small change in css, because when I for example have some bigger image in issue description, after switching to preview in dynamic edit modal position of this modal was bad (toolbar wasn't visible).

@Ilogeek can you check this and add similar fix in next release?

--- a/assets/javascripts/issue_dynamic_edit.js
+++ b/assets/javascripts/issue_dynamic_edit.js
@@ -151,7 +151,7 @@ var cloneEditForm = function(){
                        cfg.height = 100;
                        CKEDITOR.replace("issue_description_dynamic", cfg)
                }else if (typeof(jsToolBar) === typeof(Function)) {
-                       var wikiToolbar = new jsToolBar(document.getElementById('issue_description_dynamic')); wikiToolbar.draw();
+                       var wikiToolbar = new jsToolBar(document.getElementById('issue_description_dynamic')); wikiToolbar.setPreviewUrl('/preview/text'); wikiToolbar.draw();
                }
        }
 
--- a/assets/stylesheets/issue_dynamic_edit.css
+++ b/assets/stylesheets/issue_dynamic_edit.css
@@ -56,7 +56,8 @@ body.controller-issues.action-show .dynamicEditField {
        opacity: 0;
        transition: opacity .3s ease-in;
        /* left:0; correct position on top of icon */
-       bottom: 100%;
+       /*bottom: 100%;*/
+       top: 10%;
        margin-bottom: 5px;
        box-sizing: border-box;
        padding: 10px;

from redmine_issue_dynamic_edit.

Ilogeek avatar Ilogeek commented on July 18, 2024

Hello @pr-dtakac

Thank you for your feedback and investigation
This issue may have the same problem : #100 and my last commit may have solved it

Don't hesitate to come back to me if you have any difficulty

If you find the plugin helpful, take a minute to star it on Github and rate it 5 stars on http://www.redmine.org/plugins/redmine_issue_dynamic_edit 👍

from redmine_issue_dynamic_edit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.