Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diagramUrl dont load from local url #941

Closed
amir3164 opened this Issue Feb 27, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@amir3164
Copy link

amir3164 commented Feb 27, 2019

iam add diagramUrl from local project but dont load and dnot allow add digram

var diagramUrl = '/diagram.bpmn';

      // modeler instance
      var bpmnModeler = new BpmnJS({
        container: '#canvas',
        keyboard: {
          bindTo: window
        }
      });

untitled

@pinussilvestrus

This comment has been minimized.

Copy link
Contributor

pinussilvestrus commented Feb 27, 2019

Hi @amir3164

Did you take a look inside the bpmn-js starter example? It feels unclear to me how you try to import your diagram inside the Modeler. Can you provide some more information about your use case, or is the snippet you shared the only code?

Note: Please always feel free to use our forum. It might be a better place for asking questions.

@nikku

This comment has been minimized.

Copy link
Member

nikku commented Feb 28, 2019

The toolkit does not allow you to open a diagram via URL.

Load the diagram using your favorite AJAX library and open it via the Modeler#importXML method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.