🎨 Improve the embedded block menu (#16204)

fix https://github.com/siyuan-note/siyuan/issues/16201
This commit is contained in:
Jeffrey Chen 2025-10-26 18:46:37 +08:00 committed by GitHub
parent 45381d2575
commit 57bb4fca56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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": ""}