camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.49k stars 476 forks source link

Share working directory with client #602

Closed philippfromme closed 7 years ago

philippfromme commented 7 years ago

Plugins might want to request resources like images from their directory. In order to access this directory they should be able to access the current working directory of the Camunda Modeler like

requestResource(getModelerDirectory() + '/plugins/my-plugin/image.png');

or

requestResource(getPluginsDirectory() + '/my-plugin/image.png');
vkatushenok commented 7 years ago

@philippfromme LGTM

vkatushenok commented 7 years ago

@philippfromme What about also not in CWD plugins folder (there are several folders that you can put plugins in)?