Skip to content

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

:art: Improve the embedded block menu (#16204)

Jeffrey Chen57bb4fca561e
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 3b77bdeca7..23e3336b06 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1698,7 +1698,7 @@ export class Gutter {
iconHTML: "",
checked: !nodeElement.getAttribute("custom-heading-mode"),
click() {
- nodeElement.setAttribute("custom-heading-mode", "0");
+ nodeElement.removeAttribute("custom-heading-mode");
fetchPost("/api/attr/setBlockAttrs", {
id,
attrs: {"custom-heading-mode": ""}