mikitex70 / redmine_drawio

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

Error when referencing or creating Draw.IO Diagram with Diagram Format XML #90

Closed gordwcampbell closed 3 years ago

gordwcampbell commented 3 years ago

Hi! Firstly, thanks for building such an awesome plugin!

We have found an issue when creating or referencing existing Draw.IO diagrams in Redmine when they are of the XML type.

To step through the problem:

1 - We edit a Wiki page and click the "Attach Draw.IO Diagram" button from the toolbar. 2 - Fill out as though we are making a XML diagram type image 3 - Click Insert Macro 4 - Save the Wiki Page, 5 - We receive the error text "Failed to execute 'addEventListener' on 'EventTarget': parameter 2 is not of type 'Object'."

Both SVG and PNG versions work correctly.

Version / Build Info: Redmine 4.1.1.stable From Turnkey Linux redmine_drawio 1.0.0

Hoping this is an easy fix!

Cheers,

G

gordwcampbell commented 3 years ago

Also - weirdly, the diagram displays correctly if you're not signed in.

mikitex70 commented 3 years ago

Hi @gordwcampbell, can you tell me what browser you are using? I've done my tests with Firefox, maybe I've used some Javascript not so compatible with other broowsers.

gordwcampbell commented 3 years ago

Hi,

I just went in an re-tested and everything seems to be working now.

I was using Chrome when I was experiencing problems.

Marking as closed.

G