Skip to content

Commit 786d702

Browse files
committed
refactor(md): 优化表格插入前空行格式
1 parent 779ce82 commit 786d702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devui-vue/devui/editor-md/src/toolbar-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class ToolBarHandler {
266266
};
267267

268268
static table = (editor: any) => {
269-
const table = `| | | |\n|--|--|--|\n| | | |`;
269+
const table = `\n| | | |\n|--|--|--|\n| | | |`;
270270
editor.replaceSelection(table);
271271
};
272272

0 commit comments

Comments
 (0)