We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b0ecd commit ee724ebCopy full SHA for ee724eb
packages/devui-vue/devui/editor-md/src/toolbar-config.ts
@@ -75,8 +75,7 @@ class ToolBarHandler {
75
76
if (cursor.ch !== 0) {
77
editor.setCursor(cursor.line, 0);
78
- editor.replaceSelection('# ' + selection);
79
- editor.setCursor(cursor.line, cursor.ch + 2);
+ editor.replaceSelection('# ');
80
} else {
81
editor.replaceSelection('# ' + selection);
82
}
@@ -89,8 +88,7 @@ class ToolBarHandler {
89
88
90
91
92
- editor.replaceSelection('## ' + selection);
93
- editor.setCursor(cursor.line, cursor.ch + 3);
+ editor.replaceSelection('## ');
94
95
editor.replaceSelection('## ' + selection);
96
0 commit comments