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/15459

Vanessad3a3b5e7e433
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 77fc6bd300..9f7d596cfc 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -788,6 +788,10 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
if (newData === nameElement.dataset.title.trim()) {
return;
}
+ if (newData.length > Constants.SIZE_TITLE) {
+ showMessage(window.siyuan.languages["_kernel"]["106"]);
+ return false;
+ }
const newUpdated = dayjs().format("YYYYMMDDHHmmss");
transaction(protyle, [{
action: "setAttrViewName",