aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-07-24 22:23:23 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-07-24 22:23:23 -0400
commitd344bb81c43820d606655a4f78dbaedc66ab3638 (patch)
treeae79beb648fc22b9e0f57ad85aff8b0889c51ad3 /src
parent74593e4370b554072ebbdef9a683a04a1bcbbde1 (diff)
Small fix to button documents
Diffstat (limited to 'src')
-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"));