0

The quill interface has the ability to add an iframe, how to show the error text in the tooltip for entering a link if the url is invalid?

let Video = Quill.import('formats/video');
Video.sanitize = function validateVideoLink(value){
  if (!/^https?:/.test(value)){
    console.log('Invalid link')
  }
}
fisher
  • 83
  • 6

0 Answers0