mikitex70 / redmine_drawio

Macro plugin to embed draw.io diagrams into Redmine wiki pages
MIT License
121 stars 51 forks source link

Draw.io drawing within Project Description text #113

Closed whotopia closed 1 year ago

whotopia commented 2 years ago

I'm trying to get a draw.io drawing into Redmine Project Descroption text field.

I have tried:

  1. drawio_attach directly in the description doesn't work. I get message "«Please save content first»"
  2. tried to use {{include(Wiki)}} from a wiki page. That works but the drawio section says "Failed to execute 'addEventListener' on 'EventTarget': parameter 2 is not of type 'Object'."

Does anyone have any suggestions?

Lastly, and related, I was wonderingif you can use the drawio_attach macro to display a diagram wherein the .xml file is hosted NOT on the same wiki page? I do not have the dmsf plugin installed.

mikitex70 commented 2 years ago

I @whotopia, the plugin was designed mainly for the wiki page, then updated to work with issues. Never tested in the project description, I can take a look at it to make it work. Diagrams are loaded from attachments or with the dmsf plugin, so without the dmsf it's not easy to get something to draw in the project description page. I will check if it's possible to load from documents, but then it can be difficult to update it. And it will take me some time so you need to wait...

mikitex70 commented 2 years ago

I've done some test. The drawio_attach macro cannot be used in the project description because it wants to attach the diagram image, and it's not possible with the project description. But using the include macro to include a wiki page works fine, the diagram is shown correctly and no errors arise. Tested on Redmine 4.2.1 and plugin 1.3.1. Can you post the stack trace of the error, if logged by Redmine?

mikitex70 commented 1 year ago

No more feedback, I close the issue.