CodeMirror script editor for Camunda modeler.
# checkout a tag
git checkout v1.0.0
# install dependencies
npm install
# build the application to ./client
npm run bundle
You can implement custom CodeMirror configuration by changing next piece of code in module.js. DO NOT remove or change value and customId properties!
var myCodeMirror = CodeMirror(function (elt) {
myTextArea.parentNode.replaceChild(elt, myTextArea);
}, {
value: originalTA !== null ? originalTA.value : "",
lineNumbers: true,
mode: "groovy",
customId: textAreaId,
theme: "mdn-like",
extraKeys: { "Ctrl-Space": "autocomplete" },
hintOptions: { hint: "anyword" },
matchBrackets: true,
autoCloseBrackets: true,
highlightSelectionMatches: { showToken: /\w/, annotateScrollbar: true }
});
MIT CodeMirror