  
        function getAttr(e,attr){
            for(let i  in e.attributes){
                if(e.attributes[i].name == attr) return e.attributes[i]; 
            }
            return null;
        }

        $(document).on("click",".editHook",function(e){
            let id = getAttr(e,"hookId");
            let codeBlock = e.target.parentElement.nextSibling;
            //console.log(codeBlock);
            codeBlock.firstChild.innerHTML = "<textarea>"+$("<div />").text(codeBlock.innerText).html()+"</tex