feat: edit drawio site url
Add support for drawio in offline mode (according to https://js.wiki/feedback/p/make-drawio-support-for-offline-mode)
New config.yml value drawioBaseUrl added. By default it points to https://embed.diagrams.net/, but user can change it to some internal server.
Howto check
Get all files from https://github.com/jgraph/drawio/tree/dev/src/main/webapp directory
and copy them to some server inside internal network. With docker, you may use nginx container.
docker run --publish 8094:80 -v "$PWD/webapp":/usr/share/nginx/html/subpath nginx
In that case drawioBaseUrl would look like this
drawioBaseUrl: http://127.0.0.1:8094/subpath
Hi,
That's a very useful feature for offline instances.
At this moment, we need to build wikijs image and sed /wiki/assets/js/editor.js
ARG TAG=latest
FROM <private_registry>/requarks/wiki:${TAG}
# Use drawio.private.local instead-of draw.io public website
RUN sed -i 's/embed.diagrams.net/drawio.private.local/g' /wiki/assets/js/editor.js
@NGPixel What is the status of this issue? It looks like quadeare did the requested changes and the review is pending for over a year.
I got a few customers waiting for this feature
Need this