aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/nodes/ButtonBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/ButtonBox.tsx b/src/client/views/nodes/ButtonBox.tsx
index 622595cdc..744611661 100644
--- a/src/client/views/nodes/ButtonBox.tsx
+++ b/src/client/views/nodes/ButtonBox.tsx
@@ -50,7 +50,8 @@ export class ButtonBox extends DocComponent<FieldViewProps, ButtonDocument>(Butt
let scriptingBox = <ScriptBox initialText={originalText} onCancel={() => overlayDisposer()} onSave={(text, onError) => {
const script = CompileScript(text, {
params: { this: Doc.name },
- typecheck: false
+ typecheck: false,
+ editable: true
});
if (!script.compiled) {
onError(script.errors.map(error => error.messageText).join("\n"));