Quilljs | do you want to add < video > tag to editor?

https://quilljs.com/

I just have a problem with using this editor
.
he can only enter the network address when uploading videos
, but what I want to do now is to upload
, so I think of a way to import it to editor

.
var video = this.files[0];
  var videoUrl = window.URL.createObjectURL(video);
  $(".ql-editor p").append(videoUrl);

enter the web address directly, you can
but when I add < video > tag, there is no response. Some people enter editor but it is not a video tag. It may be just

or
. It feels like he"s stuck with something.?

append("<video controls="controls"><source src=""+videoUrl+"" id="video_here"></video>");

how can this be solved?


quilljs is unable to perform video, he is dead. You can only change the editor!


feels that there is something wrong with your thinking. If you want to insert the video manually, you can use the method provided by quill: insertEmbed


also encounters this problem. You just need to add the controls attribute to the vedio tag manually, which is necessary

.
Menu