File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/components/TextEditor Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 44
44
/>
45
45
</template >
46
46
<template #actions >
47
- <Button variant =" solid" @click =" addVideo(addVideoDialog.url)" >
48
- Insert Video
49
- </Button >
50
- <Button @click =" reset" >Cancel</Button >
47
+ <div class =" flex gap-2" >
48
+ <Button variant =" solid" @click =" addVideo(addVideoDialog.url)" >
49
+ Insert Video
50
+ </Button >
51
+ <Button @click =" reset" >Cancel</Button >
52
+ </div >
51
53
</template >
52
54
</Dialog >
53
55
</template >
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const Video = Node.create({
38
38
const video = document . createElement ( 'video' )
39
39
if ( editor . isEditable ) {
40
40
video . className = 'pointer-events-none'
41
+ video . controls = true
41
42
}
42
43
video . src = node . attrs . src
43
44
if ( ! editor . isEditable ) {
You can’t perform that action at this time.
0 commit comments