mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-06-29 14:11:02 -06:00
Revert example html
This commit is contained in:
parent
d26b4e399b
commit
4b48564730
@ -13,52 +13,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<textarea></textarea>
|
<textarea></textarea>
|
||||||
<script>
|
<script>
|
||||||
const easyMDE = new EasyMDE({
|
const easyMDE = new EasyMDE();
|
||||||
showIcons: ["code", "table"],
|
|
||||||
toolbar: [
|
|
||||||
{
|
|
||||||
name: "bold",
|
|
||||||
action: EasyMDE.toggleBold,
|
|
||||||
className: "fa fa-bold",
|
|
||||||
title: "Bold",
|
|
||||||
},
|
|
||||||
'table',
|
|
||||||
{
|
|
||||||
name: "italic",
|
|
||||||
action: EasyMDE.toggleItalic,
|
|
||||||
className: "fa fa-italic",
|
|
||||||
title: "Italic",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "strikethrough",
|
|
||||||
action: EasyMDE.toggleStrikethrough,
|
|
||||||
className: "fa fa-strikethrough",
|
|
||||||
title: "Strikethrough",
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
name: 'link',
|
|
||||||
action: 'https://github.com/Ionaru/easy-markdown-editor',
|
|
||||||
className: 'fa fab fa-github',
|
|
||||||
title: 'A Custom Link',
|
|
||||||
noDisable: true,
|
|
||||||
noMobile: true,
|
|
||||||
},
|
|
||||||
'preview',
|
|
||||||
{
|
|
||||||
name: 'bold',
|
|
||||||
action: EasyMDE.toggleBold,
|
|
||||||
className: 'fa fas fa-bold',
|
|
||||||
title: 'Bold',
|
|
||||||
attributes: {
|
|
||||||
'data-custom': 'some value',
|
|
||||||
'data-custom-2': 'another value',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
toolbarButtonClassPrefix: 'mde'
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user