jgraph/drawio-nextcloud

Customized nextcloud drawio configration

mkaiser opened this issue · 4 comments

Hi,

first: Great Integration! The concurrent access from multiple users worked directly in the current version, making me very happy! :)

I need some help regarding customized configurations for diagrams.net. I hope this is the right place for my question.

Based on the diagrams.net webpage, I spend some time to create a theme with predefined colors, shape layouts, font etc following this guide https://www.diagrams.net/doc/faq/configure-diagram-editor

The configuration dialogue of the diagrams.net webpage (not nextcloud, yet!) allowed me to generate this link , which works well with the diagrams.net webpage.

Diagrams.net
Extras --> Configuraton (insert JSON stuff) --> Link ("Verknüpfung")
image

Now, I want to integrate it into my Nextcloud instance (externally hosted) using this settings dialogue, but I cannot make it work.

image

Using the provided link as "Draw.io URL" I get the error message "app.diagrams.net is inaccessible (german: "gesperrt"). app.diagrams.net refused the connection. ERR_BLOCKED_BY_RESPONSE " when opening a draw.io file via my nextcloud instance.

When I change the link from app.diagrams.net/ to embed.diagrams.net/ (like this), the nextcloud page starts loading the diagrams menu, but never finishes.

I unsucessfully tried some other variants of the string e.g. add some URL parameter "?embed=1" etc. :/

Am I missing something? I still have the feeling that I did not fully understand the concept of the app vs. embedded usage.

Sorry to 'ping', but are there any updates on this?

Can you reproduce the issue / is it expected behaviour, etc?

The configuration link won't work. We plan to add a custom configuration section in the app nextcloud config page

Configuration setting is added to v2.1.1

Thank you very much, it works like a charm!

Also it is very convenient, that I can simply parse the JSON config without the string encoding

I saw in the commit history, that this feature required many changes - THANK YOU!