mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-23 09:54:28 -06:00
More clearly document custom button code
This commit is contained in:
parent
170cbd0b2f
commit
169752eb9d
@ -197,6 +197,14 @@ var simplemde = new SimpleMDE({
|
|||||||
className: "fa fa-bold",
|
className: "fa fa-bold",
|
||||||
title: "Bold (Ctrl+B)",
|
title: "Bold (Ctrl+B)",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "custom",
|
||||||
|
action: customFunction(editor){
|
||||||
|
// Add your own code
|
||||||
|
},
|
||||||
|
className: "fa fa-star",
|
||||||
|
title: "Custom Button",
|
||||||
|
},
|
||||||
"|", // Separator
|
"|", // Separator
|
||||||
...
|
...
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user