mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 18:00:15 +01:00
This commit is contained in:
parent
c2bd3d2204
commit
face4a1c90
1 changed files with 2 additions and 2 deletions
|
|
@ -190,9 +190,9 @@ export const insertColumn = (protyle: IProtyle, nodeElement: Element, cellElemen
|
|||
const tag = colCellElement.tagName.toLowerCase();
|
||||
let html = "";
|
||||
if (colCellElement === cellElement) {
|
||||
html = `<${tag}><wbr> </${tag}>` + `<${tag}> </${tag}>`.repeat(count - 1);
|
||||
html = `<${tag}><wbr></${tag}>` + `<${tag}></${tag}>`.repeat(count - 1);
|
||||
} else {
|
||||
html = `<${tag}> </${tag}>`.repeat(count);
|
||||
html = `<${tag}></${tag}>`.repeat(count);
|
||||
}
|
||||
colCellElement.insertAdjacentHTML(type, html);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue