diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-24 03:50:41 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-24 03:50:41 -0400 |
| commit | 8f8a12f6e81482d6cbc4789c3b7f74015f33f423 (patch) | |
| tree | d4c04e95018c1cc1fa4ae66b2b568742d00ae3e9 /src/client/views/nodes/formattedText/nodes_rts.ts | |
| parent | ccdef5784dd963b71f493116d87786c0b0a787d2 (diff) | |
fixes for audiotags so that they can be navigated to when focusing. fixes to dictation to start/stop properly. added "RecodingEvents" to trigger dictation waypoints.
Diffstat (limited to 'src/client/views/nodes/formattedText/nodes_rts.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/nodes_rts.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/nodes_rts.ts b/src/client/views/nodes/formattedText/nodes_rts.ts index df93fc117..2fe0a67cb 100644 --- a/src/client/views/nodes/formattedText/nodes_rts.ts +++ b/src/client/views/nodes/formattedText/nodes_rts.ts @@ -28,14 +28,17 @@ export const nodes: { [index: string]: NodeSpec } = { group: "block", attrs: { timeCode: { default: 0 }, - audioId: { default: "" } + audioId: { default: "" }, + textId: { default: "" } }, toDOM(node) { return ['audiotag', { + class: node.attrs.textId, // style: see FormattedTextBox.scss "data-timecode": node.attrs.timeCode, "data-audioid": node.attrs.audioId, + "data-textid": node.attrs.textId, }, formatAudioTime(node.attrs.timeCode.toString()) ]; @@ -45,7 +48,8 @@ export const nodes: { [index: string]: NodeSpec } = { tag: "audiotag", getAttrs(dom: any) { return { timeCode: dom.getAttribute("data-timecode"), - audioId: dom.getAttribute("data-audioid") + audioId: dom.getAttribute("data-audioid"), + textId: dom.getAttribute("data-textid") }; } }, |
