mikitex70 / redmine_drawio

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

Redmine drawio plugin, create custom library #95

Open drenriza opened 3 years ago

drenriza commented 3 years ago

This issue is an re-opening from https://www.redmine.org/boards/3/topics/65446?r=65478#message-65478

I am trying to figure out how i can create a drawio custom library through the plugin. Normally (as far as i can tell) you go to file -> new library, but this option is not available to me.

I have a scratchpad, but that wont allow me to create a custom library that i can populate with shapes and share with my team.

So the question is How can i create a new custom library, that i can populate with custom shapes and share with others so the library always is present when using the plugin on par with the default libraries?

Thanks in advance Best regards.

mikitex70 commented 3 years ago

Hi @drenriza, sorry for the long delay but I've been very busy lately. Try the latest version of the plugin (v1.1.0), now in the File menu should show the library management sub menus.

drenriza commented 3 years ago

Hi @mikitex70 Thanks for your reply and suggestion! I upgraded the plugin to version 1.1.0.

File -> New Library -> Browser / Device

In either case, i cannot share my libraries with others because both methods (seems) are localized to my device.

Out of curiosity i tried to save my library to device, copied the file to my redmine server, Apache public files location. And open it with

File -> Open Library from -> URL

But i get two error messages back, saying 'error loading file' 'unknown error'

I can view the library file from my browser just fine.

I have tried to write below, the functionality i am trying to get

  1. Create a new library
  2. Give it a name & add images
  3. Save it to the server
  4. Open the library as another user through the plugin

Is the above possible?

Thanks in advance Best regards

mikitex70 commented 3 years ago

Hi @drenriza , sorry for the long delay but I needed some time to test deeply the behavior. The library file is loaded by a proxy service from the embedded.diagrams.net site (the site from where is started the diagram editor). So the library must be accessible via HTTPS in Internet, and this is why you get that error. A solution (not yet tested) would be to use a local drawio installation, in this way the proxy service would be on your local network and thus would be able to load the library from your private web server.