Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17051

Vanessab22a9a73e1f2
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 62983a0ea2..7644b9e105 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -2352,7 +2352,7 @@ ${window.siyuan.languages.insertRowBefore.replace("${x}", `<span class="fn__spac
if (document.activeElement === inputElement) {
return;
}
- insertRowAbove(protyle, range, cellElement, nodeElement);
+ insertRowAbove(protyle, range, cellElement, nodeElement, parseInt(element.querySelector("input").value));
window.siyuan.menus.menu.remove();
});
inputElement.addEventListener("keydown", (event: KeyboardEvent) => {
@@ -2377,7 +2377,7 @@ ${window.siyuan.languages.insertRowAfter.replace("${x}", `<span class="fn__space
if (document.activeElement === inputElement) {
return;
}
- insertRow(protyle, range, cellElement, nodeElement);
+ insertRow(protyle, range, cellElement, nodeElement, parseInt(element.querySelector("input").value));
window.siyuan.menus.menu.remove();
});
inputElement.addEventListener("keydown", (event: KeyboardEvent) => {
@@ -2403,7 +2403,7 @@ ${window.siyuan.languages.insertColumnLeft1.replace("${x}", `<span class="fn__sp
if (document.activeElement === inputElement) {
return;
}
- insertColumn(protyle, nodeElement, cellElement, "beforebegin", range);
+ insertColumn(protyle, nodeElement, cellElement, "beforebegin", range, parseInt(element.querySelector("input").value));
window.siyuan.menus.menu.remove();
});
inputElement.addEventListener("keydown", (event: KeyboardEvent) => {
@@ -2429,7 +2429,7 @@ ${window.siyuan.languages.insertColumnRight1.replace("${x}", `<span class="fn__s
if (document.activeElement === inputElement) {
return;
}
- insertColumn(protyle, nodeElement, cellElement, "afterend", range);
+ insertColumn(protyle, nodeElement, cellElement, "afterend", range, parseInt(element.querySelector("input").value));
window.siyuan.menus.menu.remove();
});
inputElement.addEventListener("keydown", (event: KeyboardEvent) => {