Fandom-OSS/quill-blot-formatter

is there a way to use this library with a "<video/>" tag rather than an iframe?

grimace opened this issue · 1 comments

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);
    });
  }
}