Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redmine drawio plugin, create custom library #95

Open
drenriza opened this issue Jun 8, 2021 · 3 comments
Open

Redmine drawio plugin, create custom library #95

drenriza opened this issue Jun 8, 2021 · 3 comments

Comments

@drenriza
Copy link

drenriza commented Jun 8, 2021

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
Copy link
Owner

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
Copy link
Author

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

File -> New Library -> Browser / Device

  • Device saves the .xml file to my local storage.
  • Browser i suspect, saves the .xml file data to the browsers local datastore.

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants