diff options
author | bobzel <zzzman@gmail.com> | 2022-09-08 14:38:38 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-08 14:38:38 -0400 |
commit | 2c5942d76ad6e9b5874b98658b7c5af59cdfa367 (patch) | |
tree | e3c202a32b718567e398ca71fef39929688a97de /src/client/documents/Documents.ts | |
parent | 637dd4dd36a74e49c653aa6e265a0db41797de00 (diff) |
fixed font menu settings to be accurate of current selection.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 7111cb233..57a24b304 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1386,11 +1386,17 @@ export namespace DocUtils { scripts && Object.keys(scripts).map(key => { if (ScriptCast(doc[key])?.script.originalScript !== scripts[key] && scripts[key]) { - doc[key] = ScriptField.MakeScript( - scripts[key], - { dragData: DragManager.DocumentDragData.name, value: 'any', scriptContext: 'any', thisContainer: Doc.name, documentView: Doc.name, heading: Doc.name, checked: 'boolean', containingTreeView: Doc.name }, - { _readOnly_: true } - ); + doc[key] = ScriptField.MakeScript(scripts[key], { + dragData: DragManager.DocumentDragData.name, + value: 'any', + _readOnly_: 'boolean', + scriptContext: 'any', + thisContainer: Doc.name, + documentView: Doc.name, + heading: Doc.name, + checked: 'boolean', + containingTreeView: Doc.name, + }); } }); funcs && |