Browse Source

trim note name

master
Yaroslav 5 years ago
parent
commit
eb7908abba
  1. 2
      assets/public/editor/index.html

2
assets/public/editor/index.html

@ -289,7 +289,7 @@ $(document).on('keydown', function(e) { @@ -289,7 +289,7 @@ $(document).on('keydown', function(e) {
}
else if (e.keyCode == 55 && (e.ctrlKey || e.metaKey) && e.shiftKey) { // CTRL + SHIFT + 7
const text = $('#wmd-input').val();
let name = text.split("\n")[0].replaceAll("#", "")
let name = text.split("\n")[0].replaceAll("#", "").trim()
const xhr = new XMLHttpRequest();
const cb = function (status, responseRaw) {
const response = JSON.parse(responseRaw);

Loading…
Cancel
Save