Skip to content

Conversation

@dzruyk
Copy link
Contributor

@dzruyk dzruyk commented Nov 19, 2022

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

@auto-assign auto-assign bot requested a review from NGPixel November 19, 2022 23:24
@dzruyk dzruyk requested a review from NGPixel November 20, 2022 01:15
@quadeare
Copy link

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

@melvin-suter
Copy link

@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

@Kvaksrud
Copy link

Need this

@mvdkleijn
Copy link

Hi @NGPixel I realize you're busy, but could I bother you to take a quick look at #5873 since that appears to be ready to merge? Your comments have been resolved and the PR has been waiting on your approval / merge for almost two years now. It'd be very nice to get this in. The PR has no conflicts with main.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants