mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
This commit is contained in:
parent
9fb4d9da2a
commit
4a0a1495db
157 changed files with 11245 additions and 1 deletions
8
app/src/API.ts
Normal file
8
app/src/API.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class SiYuanAPI {
|
||||
|
||||
static openFile() {
|
||||
// openFileById()
|
||||
}
|
||||
}
|
||||
|
||||
export default SiYuanAPI;
|
||||
|
|
@ -1030,6 +1030,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
|
|||
}
|
||||
}
|
||||
}
|
||||
focusByRange(range);
|
||||
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -737,9 +737,10 @@ export class WYSIWYG {
|
|||
// 合并背景色不会修改,需要等计算完毕
|
||||
setTimeout(() => {
|
||||
if (tableBlockElement) {
|
||||
selectCellElements[0].innerHTML = html;
|
||||
selectCellElements[0].innerHTML = html + "<wbr>";
|
||||
selectCellElements[0].colSpan = colSpan;
|
||||
selectCellElements[0].rowSpan = rowSpan;
|
||||
focusByWbr(selectCellElements[0], document.createRange());
|
||||
updateTransaction(protyle, tableBlockElement.getAttribute("data-node-id"), tableBlockElement.outerHTML, oldHTML);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue