react-drawio
react-drawio copied to clipboard
Using locally hosted version of drawio
Hi Team, When I am using this plugin with locally hosted version of drawio, I am getting below error
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
Any update in this?
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.
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?