This commit is contained in:
@@ -357,11 +357,17 @@ export default {
|
|||||||
//if a selected block with several lines then prepend each line
|
//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
|
//if a selected block with one line only then prepend start of first line after last linefeed
|
||||||
this.getSelectedRange();
|
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() {
|
clickOl() {
|
||||||
this.getSelectedRange();
|
this.getSelectedRange();
|
||||||
this.replaceSelectedText("`" + this.getSelectedText() + "`");
|
this.replaceSelectedText("* " + this.getSelectedText());
|
||||||
},
|
},
|
||||||
clickTask() {
|
clickTask() {
|
||||||
this.getSelectedRange();
|
this.getSelectedRange();
|
||||||
|
|||||||
Reference in New Issue
Block a user