Vanessa 2025-12-01 19:30:33 +08:00
parent 12ebc120a0
commit 4d2d0a8d4c
2 changed files with 65 additions and 11 deletions

View file

@ -626,6 +626,14 @@ export class Gutter {
selectsElement,
type: "Blocks2Blockquote"
}));
turnIntoSubmenu.push(this.turnsIntoOne({
menuId: "callout",
icon: "iconCallout",
label: window.siyuan.languages.callout,
protyle,
selectsElement,
type: "Blocks2Callout"
}));
}
turnIntoSubmenu.push(this.turnsInto({
menuId: "paragraph",
@ -1007,6 +1015,14 @@ export class Gutter {
selectsElement: [nodeElement],
type: "Blocks2Blockquote"
}));
turnIntoSubmenu.push(this.turnsIntoOne({
menuId: "callout",
icon: "iconCallout",
label: window.siyuan.languages.callout,
protyle,
selectsElement: [nodeElement],
type: "Blocks2Callout"
}));
turnIntoSubmenu.push(this.turnsInto({
menuId: "heading1",
icon: "iconH1",
@ -1086,6 +1102,14 @@ export class Gutter {
selectsElement: [nodeElement],
type: "Blocks2Blockquote"
}));
turnIntoSubmenu.push(this.turnsIntoOne({
menuId: "callout",
icon: "iconCallout",
label: window.siyuan.languages.callout,
protyle,
selectsElement: [nodeElement],
type: "Blocks2Callout"
}));
if (subType !== "h1") {
turnIntoSubmenu.push(this.turnsInto({
menuId: "heading1",
@ -1178,6 +1202,14 @@ export class Gutter {
selectsElement: [nodeElement],
type: "Blocks2Blockquote"
}));
turnIntoSubmenu.push(this.turnsIntoOne({
menuId: "callout",
icon: "iconCallout",
label: window.siyuan.languages.callout,
protyle,
selectsElement: [nodeElement],
type: "Blocks2Callout"
}));
if (nodeElement.getAttribute("data-subtype") === "o") {
turnIntoSubmenu.push(this.turnsOneInto({
menuId: "list",