diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-29 16:39:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-29 16:39:17 -0400 |
| commit | 4f3c8cfab12f1c5fff27faa0998a286d210148d2 (patch) | |
| tree | bd3945a93693947599dbe9eaf60b5f5852e514d1 /src/client/util/DictationManager.ts | |
| parent | f5a9d196a96f9a81436fa8de8659eaa51a131d81 (diff) | |
major restructure of how addDocTabs works. now you can add/replace with options for left/right/top/bottom and specific panel names
Diffstat (limited to 'src/client/util/DictationManager.ts')
| -rw-r--r-- | src/client/util/DictationManager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/DictationManager.ts b/src/client/util/DictationManager.ts index e66c15fcb..231e1fa8d 100644 --- a/src/client/util/DictationManager.ts +++ b/src/client/util/DictationManager.ts @@ -323,7 +323,7 @@ export namespace DictationManager { ["open fields", { action: (target: DocumentView) => { const kvp = Docs.Create.KVPDocument(target.props.Document, { _width: 300, _height: 300 }); - target.props.addDocTab(kvp, "onRight"); + target.props.addDocTab(kvp, "add:right"); } }], @@ -337,7 +337,7 @@ export namespace DictationManager { const proseMirrorState = `{"doc":{"type":"doc","content":[{"type":"ordered_list","content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"type":"text","text":"${prompt}"}]}]}]}]},"selection":{"type":"text","anchor":${anchor},"head":${head}}}`; proto.data = new RichTextField(proseMirrorState); proto.backgroundColor = "#eeffff"; - target.props.addDocTab(newBox, "onRight"); + target.props.addDocTab(newBox, "add:right"); } }] |
