jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
40.69k stars 7.57k forks source link

Custom Libraries in Confluence Cloud and Server can't be set by default #1256

Open Bastesque opened 3 years ago

Bastesque commented 3 years ago

Preflight Checklist

Describe the bug The blog post https://drawio-app.com/customise-default-shape-libraries-templates-and-plugins-in-draw-io-for-confluence-cloud/ says that users can have default libraries when they open the editor. They should also be able to have custom libraries available per default, what is important for customers that like to offer customized shapes to their users.

The default library display is possible in both deployments, but we don't manage it to make it happen for custom libraries

To Reproduce Steps to reproduce the behavior:

  1. Create a custom library
  2. add the name of the library to the JSON code

{ "defaultLibraries": "general;uml;entity;", "defaultCustomLibraries": ["marketing", "infographics"], }

  1. Library will not be displayed in the library panel of the editor. Screenshot 2020-10-27 at 12 47 41

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

draw.io version (In the Help->About menu of the draw.io editor):

mararad commented 3 years ago

Hi Bastian,

I tested default custom libraries in draw.io 9.4.10 and it is working at my place (it is opened in draw.io editor by default) Could you test yourself using this test instance and let us know the result. It can be seen under More shapes bottom left and above the 1st library on the left.

https://testcustomlibs.swift-wiki.net/

I use Chrome Version 86.0.4240.111 (Official Build) (64-bit) and Win 10 Pro.

P.S Default custom libraries in Confluence Cloud can be added only via library URL at the moment. Adding by its name is marked as feature request and Ash is assigned.

Regards,

mararad commented 3 years ago

customl

Bastesque commented 3 years ago

Thank you very much for your help. If I use the "library code" (in my case A64) for the custom libraries, it works on my side, too. I was just wondering because in the blog post you were able to use the actual names of the libraries. If we want to keep it that way we need to rephrase the post.

m-mohamedin commented 3 years ago

In Confluence Cloud, we can add the library by name but it still needs a prefix. Or disable all types of external libraries (local storage, url, ...) except for Confluence ones such that we use names without a prefix?