From 035ddfe10210be483d9851e208430e85fa02f5cd Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 4 Jun 2024 17:41:49 +0200 Subject: [PATCH] fix youtube timestamp setting --- external/@worldbrain/memex-common | 2 +- src/annotations/components/AnnotationCreate.tsx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/external/@worldbrain/memex-common b/external/@worldbrain/memex-common index da9fa7dd4a..81ce04034b 160000 --- a/external/@worldbrain/memex-common +++ b/external/@worldbrain/memex-common @@ -1 +1 @@ -Subproject commit da9fa7dd4a366edf388189d0015af4211e1f5d92 +Subproject commit 81ce04034b52b51ffa07adf5839711be4ebbf62b diff --git a/src/annotations/components/AnnotationCreate.tsx b/src/annotations/components/AnnotationCreate.tsx index 5fe5815f01..69a48b27d1 100644 --- a/src/annotations/components/AnnotationCreate.tsx +++ b/src/annotations/components/AnnotationCreate.tsx @@ -202,7 +202,8 @@ export class AnnotationCreate extends React.Component this.setState({ onEditClick: true }, async () => { await delay(300) if (commentText) { - this.editor?.addYoutubeTimestampWithText( + this.editor?.insertContentAt( + null, commentText, ) } else { @@ -212,9 +213,7 @@ export class AnnotationCreate extends React.Component }) } else { if (commentText) { - this.editor?.addYoutubeTimestampWithText( - commentText, - ) + this.editor?.insertContentAt(null, commentText) } else { this.editor?.addYoutubeTimestamp() }