react-drawio icon indicating copy to clipboard operation
react-drawio copied to clipboard

Using locally hosted version of drawio

Open subhanshu-shukla-ril opened this issue 6 months ago • 3 comments

Hi Team, When I am using this plugin with locally hosted version of drawio, I am getting below error

Image

Here is my docker compose of locally hosted drawio

version: '3'

services:
  drawio:
    image: tomcat:9-jdk11
    container_name: drawio-server
    ports:
      - '28080:8080'
    volumes:
      - ./.local/draw.war:/usr/local/tomcat/webapps/drawio.war
    environment:
      - TZ=UTC

My component

 <DrawIoEmbed
          key="draw-view"
          baseUrl="http://localhost:28080/drawio/"
          urlParameters={{
            lightbox: true,
          }}
          xml={xml}
        />

Local drawio installation working fine

Image

subhanshu-shukla-ril avatar May 05 '25 12:05 subhanshu-shukla-ril

Any update in this?

subhanshu-shukla-ril avatar May 13 '25 11:05 subhanshu-shukla-ril

Hi @subhanshu-shukla-ril,

Can you share what the iframe looks like that's loaded after using this library? Does it point to the correct URL? I haven't used a hosted version of draw.io myself yet, but I know others have been running it successfully this way.

You might want to have a look why /drawio/notifications returns a 404, but that's not related to this library.

marcveens avatar May 15 '25 09:05 marcveens

Hi @subhanshu-shukla-ril ,

There was an issue with loading another baseUrl into the react-drawio library, which I think is fixed now. Could you have a look and see if it works when you use the new version 1.0.6 of this library?

marcveens avatar Jul 03 '25 07:07 marcveens