jgraph / docker-drawio

Dockerized draw.io based on whichever is the most secure image at the time.
GNU General Public License v3.0
1.57k stars 365 forks source link

Custom plugins in self-contained drawio? #162

Open vlsav opened 3 months ago

vlsav commented 3 months ago

Hello! Is it possible to enable custom plugins in self-contained draw-io? I've checked sources, seems there is window.ALLOW_CUSTOM_PLUGINS variable, but it is not clear if it is possible to enable it and if it will allow custom plugins in self-contained draw-io? There is nothing about it in docker-entrypoint.sh

shahram7 commented 1 month ago

hello, i have the same question. Has anyone managed to install custom plugins on selfhosted drawio?

vlsav commented 1 month ago

by modification of main/docker-entrypoint.sh by adding into PreConfig.js: window.ALLOW_CUSTOM_PLUGINS = true it is preferable if it will be added into baseline docker-entrypoint.sh, with additional ENV variable to make such option configurable. But I didn't find the way to raise such PR.