Add jsonata function help

This commit is contained in:
Nick O'Leary
2016-11-15 23:22:25 +00:00
parent d33029027f
commit 26f5305593
11 changed files with 318 additions and 73 deletions

View File

@@ -85,6 +85,7 @@
}
return true;
}
var allOptions = {
msg: {value:"msg",label:"msg.",validate:validateExpression},
flow: {value:"flow",label:"flow.",validate:validateExpression},
@@ -103,9 +104,9 @@
expand:function() {
var that = this;
RED.editor.editExpression({
value: this.value(),
value: jsonata.format(this.value()),
complete: function(v) {
that.value(v);
that.value(v.replace(/\s*\n\s*/g," "));
}
})
}