This commit is contained in:
Vanessa 2022-10-21 11:35:12 +08:00
parent 9fb4d9da2a
commit 4a0a1495db
157 changed files with 11245 additions and 1 deletions

8
app/src/API.ts Normal file
View file

@ -0,0 +1,8 @@
class SiYuanAPI {
static openFile() {
// openFileById()
}
}
export default SiYuanAPI;

View file

@ -1030,6 +1030,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
}
}
}
focusByRange(range);
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);
}
});

View file

@ -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);
}
});