Skip to content

Commit be3d5b0

Browse files
authored
Feature/ji 6153 drag and drop video audio (#234)
* JI-6152 add drag and drop, and paste functionality to image widget * JI-6152 build css file * JI-6152 fix bug with copyright html * JI-6152 fix to make better accessible component * JI-6152 build css production file * JI-6152 adjust styling * JI-6152 minor manual linting * JI-6152 fix issues from review * JI-6152 fix minor styling issues * JI-6153 create basic mvp of dnd for video/audio * JI-6153 fix race condition when uploading and fix styling for box with quality input * JI-6153 add support for pasting video files * JI-6153 switch static text to use translations * JI-6153 fix handling of error messages and improve accessibility * JI-6153 use svg from css instead of code * JI-6153 fix minor styling issues and minor bug * JI-6153 fix reference to progress * JI-6153 fix bug with replacing youtube url * JI-6153 remove console.log * JI-6153 fix issue after merge conflict * JI-6153 fix styling issues * JI-6153 handle input bug and fix aria label * JI-6153 fix typo * JI-6153 fix imports of svg * JI-6153 fix styling issues and logic around replacing video * JI-6253 update badge and adjust box scaling * JI-6153 fix styling when uploading video * JI-6153 create loading indicator when replacing url * JI-6153 use single quotes instead of double * JI-6153 more single quotes * JI-6153 use correct icon for insert url --------- Co-authored-by: William Almnes <[email protected]>
1 parent 4a34e82 commit be3d5b0

File tree

10 files changed

+765
-292
lines changed

10 files changed

+765
-292
lines changed

images/drag-and-drop/upload-image.svg

-7
This file was deleted.

language/en.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,28 @@ H5PEditor.language.core = {
2222
confirmImageRemoval: 'Are you sure you want to delete this image?',
2323
dragAndDropAndPasteImage: 'Drag and drop image file to upload or paste by',
2424
dragAndDropAndPasteReplaceImage: 'Drag or paste image file here to replace',
25-
dropImage: "Drop image file here to upload",
25+
dropImage: 'Drop image file here to upload',
2626
uploadImage: 'Upload Image',
2727
uploadingImage: 'Uploading the image, please wait.',
2828
replaceImage: 'Replace Image?',
2929
confirmReplaceImage: 'Are you sure you want to replace this image?',
3030
onlyPasteImageFiles: 'You may only paste image files.',
31+
uploadVideo: 'Upload Video',
32+
uploadAudio: 'Upload Audio',
33+
uploadOr: 'or',
34+
dragAndDropAndPasteVideo: 'Drag and drop video file here to upload or paste by',
35+
dragAndDropAndPasteAudio: 'Drag and drop audio file here to upload or paste by',
36+
pasteVideoLink: 'Paste YouTube link or other video source',
37+
pasteAudioLink: 'Paste link or other audio source URL',
38+
dropVideo: 'Drop video file here to upload',
39+
dropAudio: 'Drop audio file here to upload',
40+
enterVideoLink: 'Enter a video link',
41+
enterAudioLink: 'Enter an audio link',
42+
insertUrl: 'Insert url',
43+
replaceUrl: 'Replace url',
44+
supportedVideoFormats: 'H5P supports all external video sources formatted as <span class="h5p-bold">mp4</span>, <span class="h5p-bold">webm</span> or <span class="h5p-bold">ogv</span>, like Vimeo Pro, and has support for YouTube and Panopto links.',
45+
dragAndDropToReplaceVideo: 'Drag and drop video file here to replace',
46+
dragAndDropToReplaceAudio: 'Drag and drop audio file here to replace',
3147
changeFile: 'Change file',
3248
changeLibrary: 'Change content type?',
3349
semanticsError: 'Semantics error: :error',

0 commit comments

Comments
 (0)