From f004c2d0c3d3e9bf8b764210652484d969813241 Mon Sep 17 00:00:00 2001 From: Jeroen Akkerman Date: Sun, 10 Oct 2021 01:04:28 +0200 Subject: [PATCH] More small README improvements --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5450daf..2a13104 100644 --- a/README.md +++ b/README.md @@ -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",