Open izzues opened 4 years ago
You can use the showIcons
property to show buttons that are normally hidden by default. If you want custom buttons then you'll have to write down the defaults again.
This example uses 3 of the standard buttons and one custom one.
var easyMDE = new EasyMDE({
toolbar: [
"bold",
{
name: "custom",
action: function customFunction(editor){
// Add your own code
},
className: "fa fa-star",
title: "Custom Button",
},
"italic",
"heading",
"|" // Separator
// [, ...]
]
});
Ok, thanks!
So I'll leave this as a suggestion: Expose an object containing all of EasyMDE's default options so I can simply merge them with my own and then pass the result to the constructor! What do you think?
That's not a bad idea
Is it possible to do that?