mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
dont tokenise JSONata
- monaco has jsonata tokeniser
This commit is contained in:
parent
c475536388
commit
df7aa3339b
@ -121,6 +121,8 @@
|
||||
var currentFunctionMarker = null;
|
||||
|
||||
expressionEditor.getSession().setValue(value||"",-1);
|
||||
//ace only (monaco has jsonata tokeniser)
|
||||
if(expressionEditor.type == "ace") {
|
||||
expressionEditor.on("changeSelection", function() {
|
||||
var c = expressionEditor.getCursorPosition();
|
||||
var token = expressionEditor.getSession().getTokenAt(c.row,c.column);
|
||||
@ -187,7 +189,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
dialogForm.i18n();
|
||||
$("#red-ui-editor-type-expression-func-insert").on("click", function(e) {
|
||||
e.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user