From 8b962053f2af99ece482537b9ac7a1daff1400b9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 7 Nov 2020 02:03:40 +0100 Subject: starting to add subtitles. fix carousels not showing up in transcript --- .../align/components/annotations/annotation.form.js | 2 +- .../annotationForms/annotationForm.text.js | 20 ++++++++++++++++++++ .../components/annotations/annotationForms/index.js | 2 ++ .../annotationTypes/annotationTypes.text.js | 19 +++++++++++++++++++ .../components/annotations/annotationTypes/index.js | 2 ++ 5 files changed, 44 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/align/components/annotations') diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js index b1bc052..e0a66e4 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js @@ -16,7 +16,7 @@ const ANNOTATION_TYPES = [ 'sentence', 'section_heading', 'heading_text', 'pullquote_credit', 'paragraph_end', 'footnote', 'text_plate', - 'video', + 'video', 'subtitle', 'image', 'gallery', 'carousel', 'grid', 'vitrine', 'gallery_advance', diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js index 82a0d6e..cc7cc41 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js @@ -84,6 +84,26 @@ export const AnnotationFormTextPlate = ({ annotation, handleSettingsSelect, hand ) } +export const AnnotationFormSubtitle = ({ annotation, handleSettingsSelect, handleSettingsChange }) => { + return ( +
+