aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/AudioBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-28 13:38:41 -0500
committerbobzel <zzzman@gmail.com>2021-01-28 13:38:41 -0500
commit663f888a8948cd4081ed5bc5b00c1c51e3db83a5 (patch)
treea6df50284e2a497c8e574445322382f4512c57c4 /src/client/views/nodes/AudioBox.tsx
parent61fcef6b466c40f5b5d9c5831f25d3df240dbdf3 (diff)
parameterized StackedTimeline with tag names for starting/ending an anchor
Diffstat (limited to 'src/client/views/nodes/AudioBox.tsx')
-rw-r--r--src/client/views/nodes/AudioBox.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index c8bec74fb..9d7c9bffc 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -26,13 +26,11 @@ import { FieldView, FieldViewProps } from './FieldView';
import { FormattedTextBoxComment } from "./formattedText/FormattedTextBoxComment";
import { LinkDocPreview } from "./LinkDocPreview";
declare class MediaRecorder {
- // whatever MediaRecorder has
- constructor(e: any);
+ constructor(e: any); // whatever MediaRecorder has
}
-export const audioSchema = createSchema({ playOnSelect: "boolean" });
-type AudioDocument = makeInterface<[typeof documentSchema, typeof audioSchema]>;
-const AudioDocument = makeInterface(documentSchema, audioSchema);
+type AudioDocument = makeInterface<[typeof documentSchema]>;
+const AudioDocument = makeInterface(documentSchema);
@observer
export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps, AudioDocument>(AudioDocument) {
@@ -352,6 +350,8 @@ export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps, AudioD
fieldKey={this.annotationKey}
renderDepth={this.props.renderDepth + 1}
parentActive={this.props.parentActive}
+ startTag={"audioStart"}
+ endTag={"auidioEnd"}
focus={emptyFunction}
styleProvider={this.props.styleProvider}
docFilters={this.props.docFilters}