diff --git a/src/client/ui/ui-code-editor.js b/src/client/ui/ui-code-editor.js index 4c8dcabd..83dc0f5f 100644 --- a/src/client/ui/ui-code-editor.js +++ b/src/client/ui/ui-code-editor.js @@ -207,7 +207,11 @@ class CodeEditor { globals = this.widget.getProp('type') === 'canvas' ? {value: true, height: true, width: true, event: true} : {value: true, event: true, handle: true} + } else if (this.name === 'onResize') { + globals = {value: true, height: true, width: true, cssVars: true} } + + globals.locals = true globals.console = true globals.JS = true