diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-24 22:23:23 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-24 22:23:23 -0400 |
commit | d344bb81c43820d606655a4f78dbaedc66ab3638 (patch) | |
tree | ae79beb648fc22b9e0f57ad85aff8b0889c51ad3 /src | |
parent | 74593e4370b554072ebbdef9a683a04a1bcbbde1 (diff) |
Small fix to button documents
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/ButtonBox.tsx | 3 |
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")); |