Replies: 1 comment
-
You already know this one: you can host the XML file somewhere and load it via URL (File > Open Library from > URL…). If you self-host and can build from source (or modify your deployment), you can add custom libraries so they’re always available to your users.
B. For Docker Deployments
There is no built-in config file where you can list custom libraries. All “default” libraries are hardcoded in the source (see above) or loaded via URL. Draw.io supports plugins. You can create a plugin that loads your libraries programmatically and adds them to the sidebar on app load. Draw.loadPlugin(function(ui) { Place your plugin JS in a location served by your web server and configure draw.io to load it via the ?plugins= URL parameter.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add some custom shapes/libraries to my self-hosted Draw.io instance. I already have them as XML files.
I saw that it's possible to load custom libraries by hosting the XML file externally and referencing it via a URL. However, I’d like to know if there’s another way to do this — for example, by adding the XML files directly to a specific Draw.io folder or by modifying the Draw.io configuration.
Is that possible? If so, how can it be done?
Beta Was this translation helpful? Give feedback.
All reactions