add setOptions={{useWorker:false}} to all <AceEditor instances - fixes localdev "worker" error

This commit is contained in:
2023-04-20 10:52:11 -05:00
parent 7f49f4b1a1
commit 1c0535cdc0
8 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,7 @@ function DataBagDataEditor({title, dataBagId, data, closeCallback}: DataBagDataE
theme="github" theme="github"
name="editor" name="editor"
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
onChange={updateCode} onChange={updateCode}
width="100%" width="100%"
height="100%" height="100%"

View File

@ -111,6 +111,7 @@ function QDynamicFormField({
{ {
setFieldValue(name, value, false); setFieldValue(name, value, false);
}} }}
setOptions={{useWorker: false}}
width="100%" width="100%"
height="300px" height="300px"
value={value} value={value}

View File

@ -55,6 +55,7 @@ function ScriptDocsForm({helpText, exampleCode, aceEditorHeight}: Props): JSX.El
theme="github" theme="github"
name={name} name={name}
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
value={code} value={code}
readOnly readOnly
highlightActiveLine={false} highlightActiveLine={false}

View File

@ -232,6 +232,7 @@ function ScriptEditor({title, scriptId, contents, closeCallback, tableName, fiel
name="editor" name="editor"
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
setOptions={{ setOptions={{
useWorker: false,
enableBasicAutocompletion: true, enableBasicAutocompletion: true,
enableLiveAutocompletion: true, enableLiveAutocompletion: true,
}} }}

View File

@ -337,6 +337,7 @@ export default function DataBagViewer({dataBagId}: Props): JSX.Element
name={"viewData"} name={"viewData"}
readOnly readOnly
highlightActiveLine={false} highlightActiveLine={false}
setOptions={{useWorker: false}}
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
width="100%" width="100%"
height="400px" height="400px"

View File

@ -416,6 +416,7 @@ export default function ScriptViewer({scriptId, associatedScriptTableName, assoc
readOnly readOnly
highlightActiveLine={false} highlightActiveLine={false}
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
width="100%" width="100%"
height="400px" height="400px"
value={selectedVersionRecord?.values?.get("contents")} value={selectedVersionRecord?.values?.get("contents")}

View File

@ -172,6 +172,7 @@ function RecordDeveloperView({table}: Props): JSX.Element
theme="github" theme="github"
name="recordJSON" name="recordJSON"
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
value={recordJSONString} value={recordJSONString}
readOnly readOnly
width="100%" width="100%"

View File

@ -457,6 +457,7 @@ function CodeViewer({name, mode, code}: {name: string; mode: string; code: strin
theme="github" theme="github"
name={name} name={name}
editorProps={{$blockScrolling: true}} editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
value={activeCode} value={activeCode}
readOnly readOnly
highlightActiveLine={false} highlightActiveLine={false}