Skip to content

Commit

Permalink
refactor(md): 优化表格插入前空行格式
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatZPP committed Nov 18, 2024
1 parent 779ce82 commit 786d702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devui-vue/devui/editor-md/src/toolbar-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class ToolBarHandler {
};

static table = (editor: any) => {
const table = `| | | |\n|--|--|--|\n| | | |`;
const table = `\n| | | |\n|--|--|--|\n| | | |`;
editor.replaceSelection(table);
};

Expand Down

0 comments on commit 786d702

Please sign in to comment.