fix: misc lesson issues

This commit is contained in:
Jannat Patel
2024-04-25 16:41:56 +05:30
parent 804fc8e391
commit 1a2cb0fc3c
9 changed files with 1013 additions and 806 deletions

View File

@@ -137,6 +137,9 @@ export function getEditorTools() {
paragraph: {
class: Paragraph,
inlineToolbar: true,
config: {
preserveBlank: true,
},
},
codeBox: {
class: CodeBox,

View File

@@ -16,7 +16,7 @@ export class Upload {
renderUpload(file) {
if (this.isVideo(file.file_type)) {
return `<video controls width='100%' controlsList='nodownload' class="mb-4">
return `<video controls width='100%' controlsList='nodownload' class="mb-4" oncontextmenu="return false;">
<source src=${encodeURI(file.file_url)} type='video/mp4'>
</video>`
} else if (this.isAudio(file.file_type)) {