Create custom ace javascript mode to handle Function sig

Fixes #1911
This commit is contained in:
Nick O'Leary
2018-10-02 23:01:34 +01:00
parent 2a50c66df8
commit b2f50da322
9 changed files with 317 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ RED.editor.types._js = (function() {
var dialogForm = RED.editor.buildEditForm(tray.find('.editor-tray-body'),'dialog-form',type,'editor');
expressionEditor = RED.editor.createEditor({
id: 'node-input-js',
mode: 'ace/mode/javascript',
mode: options.mode || 'ace/mode/javascript',
value: value,
globals: {
msg:true,