问题描述
const options = {
matchBrackets: true,autoCloseBrackets: true,mode: "application/json",gutters: ["CodeMirror-lint-markers"],lineWrapping: true,lineNumbers: true,dragdrop:true
};
editor = CodeMirror.fromTextArea(container,options);
editor.on("dragover",function(editor,e){
$("#file-loading").addClass("is-active");
console.log("dragover");
e.preventDefault();
});
editor.on("drop",e){
$("#file-loading").removeClass("is-active");
console.log("drop");
e.preventDefault();
});
当我要删除文件时,一旦我将javascript / Jquery代码添加到拖放式Webhook中,它将直接在浏览器中打开该文件。
请帮助我解决此问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)