function2 [Quill] link에 https protocol Sanitization (http/https 붙이기) Search:: quill editor I try to edit embed link, but edit button does not work Modify Link.sanitize const Link = Quill.import('formats/link'); const originalSanitize = Link.sanitize; Link.sanitize = function customSanitizeLinkInput(linkValueInput: any) { let val = linkValueInput; if (!/^(https|http?:\/\/)/.test(val)) val = `https://${val}`; return originalSanitize.call(this, val); // reta.. 2023. 4. 5. [javascript] IIFE(immediately invoked function expression) Search: javascript parentheses IIFE tmp=function(){}() +function(){}() -function(){}() 0/function(){}() 0*function(){}() 0?0:function(){}() (function(){}()) (function(){})() Why are parentheses required around JavaScript IIFE? [duplicate]Ask Question There are two ways to create functions in JavaScript (well, 3, but let's ignore new Function()). You can either write a function declaration or.. 2022. 7. 12. 이전 1 다음