Browse Source

Add key CTRL+M (Read More) to editor bar

pull/440/head
danpros 4 years ago
parent
commit
8677f82d60
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      system/admin/editor/js/Markdown.Editor.js

+ 5
- 2
system/admin/editor/js/Markdown.Editor.js View File

@ -47,7 +47,7 @@
hr: "Horizontal Rule <hr> Ctrl+R", hr: "Horizontal Rule <hr> Ctrl+R",
readmore: "Read More Link",
readmore: "Read More <!--more--> Ctrl+M",
undo: "Undo - Ctrl+Z", undo: "Undo - Ctrl+Z",
redo: "Redo - Ctrl+Y", redo: "Redo - Ctrl+Y",
@ -1284,6 +1284,9 @@
case "r": case "r":
doClick(buttons.hr); doClick(buttons.hr);
break; break;
case "m":
doClick(buttons.readmore);
break;
case "y": case "y":
doClick(buttons.redo); doClick(buttons.redo);
break; break;
@ -1486,7 +1489,7 @@
})); }));
buttons.heading = makeButton("wmd-heading-button", getString("heading"), "fa fa-header", bindCommand("doHeading")); buttons.heading = makeButton("wmd-heading-button", getString("heading"), "fa fa-header", bindCommand("doHeading"));
buttons.hr = makeButton("wmd-hr-button", getString("hr"), "fa fa-ellipsis-h", bindCommand("doHorizontalRule")); buttons.hr = makeButton("wmd-hr-button", getString("hr"), "fa fa-ellipsis-h", bindCommand("doHorizontalRule"));
buttons.readmore= makeButton("wmd-readmore-button", getString("readmore"), "fa fa-arrow-right", bindCommand("doReadMore"));
buttons.readmore = makeButton("wmd-readmore-button", getString("readmore"), "fa fa-arrow-right", bindCommand("doReadMore"));
makeSpacer(3); makeSpacer(3);
buttons.undo = makeButton("wmd-undo-button", getString("undo"), "fa fa-undo", null); buttons.undo = makeButton("wmd-undo-button", getString("undo"), "fa fa-undo", null);
buttons.undo.execute = function (manager) { buttons.undo.execute = function (manager) {


Loading…
Cancel
Save