This commit is contained in:
2020-04-18 14:22:38 +00:00
parent 4d1375064e
commit 0abcc52267

View File

@@ -357,11 +357,17 @@ export default {
//if a selected block with several lines then prepend each line
//if a selected block with one line only then prepend start of first line after last linefeed
this.getSelectedRange();
this.replaceSelectedText("`" + this.getSelectedText() + "`");
if (this.selection.hasSelection) {
let s = this.getSelectedBlock();
s = s.replace(/\n/gi, "\n* ");
this.replaceSelectedBlock(s);
} else {
this.replaceSelectedText("\n* ");
}
},
clickOl() {
this.getSelectedRange();
this.replaceSelectedText("`" + this.getSelectedText() + "`");
this.replaceSelectedText("* " + this.getSelectedText());
},
clickTask() {
this.getSelectedRange();