2

I'm intending to build draw.io since cloning the repository and publish it to e.g. GitHub pages does not allow me to make use of the lightbox.
I assume that this repository only includes the client-side Java code but the lightbox is server-sided.

I want to make use of the lightbox, which allows making use of the plugins in view mode.
Instead of draw.io/?p=ex&lightbox=1&...(explorer plugin enabled), I would like to make it accessible via mydomain.io/drawio.../?p=ex&lightbox=1&....
When I clone the repository I have only access to the editor vai mydomain.io/drawio/src/main/webapp/index.html, like the public clone on (jgraph.github.io/drawio/src/main/webapp/index.html).

Anyone here, who could give me some guidance to include the right features in the build?
Neither draw.io build documentation nor Embed Diagrams tell anything about such details.
I find some more details on the mxgraph repository, Facebook and YouTube but nothing gives me the slightest clue how to continue.

Stefan
  • 372
  • 1
  • 16

1 Answers1

2

You need to clone the drawio repository from Github and launch a webserver from the directory drawio/src/main/webapp/. E.g. for testing you can run python -m SimpleHTTPServer on your local machine.

Now, a local version of the draw.io/diagrams.net editor is available at http://localhost:8000/. The lightbox viewer you are looking for can be used via urls with this structure: http://localhost:8000/?lightbox=1&p=ex&#R7V3rc... (note the URL parameters and the encoded diagram within the URL).

Boris
  • 338
  • 2
  • 20