You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed another formatting option "strikethrough". I just added it myself.
For this I added the keycode for the letter "L" to enable the shortcut cmd+L 76: "strikethrough",
Next I edited the "updateState" event strike: "strikethrough",
And also added "strike" to the checkForFormatting function var n = ["b", "i", "u", "strike", "h1", "h2", "ol", "ul", "li", "a"];
And last but not least I added the "strikethrough" command strikethrough: function(e) { e.preventDefault(), t.execCommand("strikeThrough", !1), u.update.call(this), m.change.call(this) },
For the CSS part I added the following line .jquery-notebook.bubble button.strikethrough:after{content:"\f0cc"}
This is it. Maybe you can implement this into your next version. Thanks for this awesome tool!
The text was updated successfully, but these errors were encountered:
ismaelw
changed the title
Adding another option StrikeThrough Enhancement
Adding another option strikethrough Enhancement
Jan 28, 2016
I needed another formatting option "strikethrough". I just added it myself.
76: "strikethrough",
strike: "strikethrough",
checkForFormatting
functionvar n = ["b", "i", "u", "strike", "h1", "h2", "ol", "ul", "li", "a"];
strikethrough: function(e) { e.preventDefault(), t.execCommand("strikeThrough", !1), u.update.call(this), m.change.call(this) },
.jquery-notebook.bubble button.strikethrough:after{content:"\f0cc"}
This is it. Maybe you can implement this into your next version. Thanks for this awesome tool!
The text was updated successfully, but these errors were encountered: