I'm trying to toggle a modal (that contains a Dropzone element) from an additional button that I've added although when you press the button twice, it appears to disable the editor. The only way to get it back is to refresh the page.
$("#content").markdown({
additionalButtons: [
[{
name: "groupCustom",
data: [{
name: "uploadFile",
title: "Upload File",
icon: "fa fa-upload",
callback: function(e){
$('#myModal').toggle(); // what is wrong with this line?
}
}]
}]
]
});
I'm trying to toggle a modal (that contains a Dropzone element) from an additional button that I've added although when you press the button twice, it appears to disable the editor. The only way to get it back is to refresh the page.