mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-24 10:24:29 -06:00
More small README improvements
This commit is contained in:
parent
551c84bc01
commit
f004c2d0c3
@ -299,8 +299,8 @@ const editor = new EasyMDE({
|
||||
el.setAttribute('data-keystrokes', 0);
|
||||
},
|
||||
onUpdate: (el) => {
|
||||
let keystrokes = Number(el.getAttribute('data-keystrokes')) + 1;
|
||||
el.innerHTML = keystrokes + " Keystrokes";
|
||||
const keystrokes = Number(el.getAttribute('data-keystrokes')) + 1;
|
||||
el.innerHTML = `${keystrokes} Keystrokes`;
|
||||
el.setAttribute('data-keystrokes', keystrokes);
|
||||
},
|
||||
}], // Another optional usage, with a custom status bar item that counts keystrokes
|
||||
@ -369,9 +369,10 @@ const easyMDE = new EasyMDE({
|
||||
className: "fa fa-bold",
|
||||
title: "Bold",
|
||||
},
|
||||
"italics", // shortcut to pre-made button
|
||||
{
|
||||
name: "custom",
|
||||
action: function customFunction(editor) {
|
||||
action: (editor) => {
|
||||
// Add your own code
|
||||
},
|
||||
className: "fa fa-star",
|
||||
|
Loading…
x
Reference in New Issue
Block a user