Skip to content

igorsimko/camunda-script-editor-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Camunda script editor plugin

CodeMirror script editor for Camunda modeler.

Example

Building the Application

# checkout a tag
git checkout v1.0.0

# install dependencies
npm install

# build the application to ./client
npm run bundle

Custom CodeMirror config

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 }
        });

License

MIT CodeMirror