quill-blot-formatter
quill-blot-formatter copied to clipboard
is there a way to use this library with a "<video/>" tag rather than an iframe?
for a number of reasons, I'm forced to use a video tag rather than an iframe. is there a way to use this for that purpose?
class VideoSpec extends ImageSpec {
init() {
var vm = this;
this.formatter.quill.root.addEventListener("click", function (event) {
var el = event.target;
if (!(el instanceof HTMLElement) || el.tagName !== "VIDEO") {
return;
}
vm.img = el;
vm.formatter.show(vm);
});
}
}