quill-blot-formatter icon indicating copy to clipboard operation
quill-blot-formatter copied to clipboard

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

Open grimace opened this issue 5 years ago • 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?

grimace avatar Sep 18 '19 17:09 grimace

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

pascalbaljet avatar Nov 05 '20 09:11 pascalbaljet