Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve pasting for tables containing merged cells https://github.com/siyuan-note/siyuan/issues/11888

Daniel20dead1adeda
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 9b638b5d78..f7ec2d8069 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -409,7 +409,7 @@ export class WYSIWYG {
let startCell: HTMLElement = null;
let endCell: HTMLElement = null;
const allCells = Array.from(tableElement.querySelectorAll("th, td")) as HTMLElement[];
- allCells.forEach(item => {
+ allCells.forEach((item: HTMLTableCellElement) => {
if (item.classList.contains("fn__none")) {
return;
}