diff options
author | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-07-08 15:12:16 -0400 |
---|---|---|
committer | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-07-08 15:12:16 -0400 |
commit | 6131fd8fc6cb1245ccfbc5d03d33ffd1498e83f4 (patch) | |
tree | 02d802715ae532ab5d2bd2bf422b2e337be44eac /src/client/util/DictationManager.ts | |
parent | 20611e69b3f4afca5d35a440278f4dcbbda523c7 (diff) |
Speech to phonemes progress
Diffstat (limited to 'src/client/util/DictationManager.ts')
-rw-r--r-- | src/client/util/DictationManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/DictationManager.ts b/src/client/util/DictationManager.ts index bc9fe813f..b9a465515 100644 --- a/src/client/util/DictationManager.ts +++ b/src/client/util/DictationManager.ts @@ -350,7 +350,7 @@ export namespace DictationManager { const head = 3; const anchor = head + prompt.length; 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.data = new RichTextField(proseMirrorState, prompt); proto.backgroundColor = '#eeffff'; target.props.addDocTab(newBox, OpenWhere.addRight); }, |