update simplemde config

This commit is contained in:
Simon Vieille 2021-04-07 15:43:10 +02:00
parent 26e39a4e35
commit 1e44302459
1 changed files with 79 additions and 0 deletions

View File

@ -11,6 +11,85 @@ module.exports = () => {
element: element,
forceSync: true,
autoDownloadFontAwesome: false,
spellChecker: false,
styleSelectedText: false,
toolbar: [
{
name: "bold",
action: Editor.toggleBold,
className: "fa fa-bold",
title: "Bold",
},
{
name: "italic",
action: Editor.toggleItalic,
className: "fa fa-italic",
title: "Italic",
},
{
name: "heading",
action: Editor.toggleHeadingSmaller,
className: "fa fa-heading",
title: "Heading",
},
"|",
{
name: "quote",
action: Editor.toggleBlockquote,
className: "fa fa-quote-left",
title: "Quote",
},
{
name: "unordered-list",
action: Editor.toggleUnorderedList,
className: "fa fa-list-ul",
title: "Generic List",
},
{
name: "ordered-list",
action: Editor.toggleOrderedList,
className: "fa fa-list-ol",
title: "Numbered List",
},
{
name: "table",
action: Editor.drawTable,
className: "fa fa-table",
title: "Insert Table",
},
"|",
{
name: "link",
action: Editor.drawLink,
className: "fa fa-link",
title: "Create Link",
},
{
name: "image",
action: Editor.drawImage,
className: "fa fa-image",
title: "Insert Image",
},
"|",
{
name: "preview",
action: Editor.togglePreview,
className: "fa fa-eye no-disable",
title: "togglePreview",
},
{
name: "side-by-side",
action: Editor.toggleSideBySide,
className: "fa fa-columns no-disable no-mobile",
title: "Toggle Side by Side",
},
{
name: "fullscreen",
action: Editor.toggleFullScreen,
className: "fa fa-arrows-alt no-disable no-mobile",
title: "Toggle Fullscreen",
},
],
})
})
}