I'm trying to create a custom close button for the Froala editor. I've managed to create a custom button and have it display in the froala toolbar, however I can't seem to get a close button working correctly. Can anyone give me some guidance?
My code for the custom button so far is:
JSON close button
close: {
title: "Close",
icon: "fa fa-times",
refresh: a.Editable.prototype.refreshDefault,
undo: !0,
callbackWithoutSelection: function(a) {
this.close_box()
}
},
Close function
a.Editable.prototype.close_box = function() {
alert();
}