We would like to disable the search (CTRL-F) function on the modeler and viewer. Because once used it will stay active, even we press CTRL-F somewhere else in our application and would expect that the internal search function from browser will be shown.
I can not reproduce this behavior. Can you describe how to reproduce it in more detail?
- I startet your online Demo (https://demo.bpmn.io/new)
- CTRL-F and entering Test
- Set display:none, because in our application an user can change the tab for example, so the bpmn diagram is display none.
- From now on the browser ctrl-f does not work anymore.
- Im using newest Chrome.
Is it possible to disable ctrl-f in the diagram completely, that only the browser search does work?
You can disable modules by overriding it providing an empty module with the same name when creating the bpmn-js instance:
var modeler = new BpmnJS({
additionalModules: [
{
bpmnSearch: [ 'value', 'foo' ]
}
]
});
Thanks a lot. Works like a charm!
1 Like
Please open a new thread when asking a new question so other people with the same question can find it easily.