              // TODO : Reload the table
                    },
                    404: function(data){
                        alert("An error happens during deletion");
                    }
                }
            });
        });

        // insertHookSnippet
        $(document).on("click",".insertHookSnippet",function(e){
            let id = getAttr(e.target,"hooksnippet").value;
            let code = "";
            let editor = EditorRegister[getAttr(e.target,"code").value];

            cons