Vanessa 2025-12-10 17:00:52 +08:00
parent 8d9d0a0dc0
commit 0d389f3a25

View file

@ -1285,6 +1285,14 @@ export class Gutter {
nodeElement,
type: "CancelBlockquote"
}));
turnIntoSubmenu.push(this.turnsOneInto({
id,
icon: "iconCallout",
label: window.siyuan.languages.callout,
protyle,
nodeElement,
type: "Blockquote2Callout"
}));
} else if (type === "NodeCallout" && !protyle.disabled) {
turnIntoSubmenu.push(this.turnsOneInto({
menuId: "paragraph",
@ -1296,6 +1304,14 @@ export class Gutter {
nodeElement,
type: "CancelCallout"
}));
turnIntoSubmenu.push(this.turnsOneInto({
id,
icon: "iconQuote",
label: window.siyuan.languages.quote,
protyle,
nodeElement,
type: "Callout2Blockquote"
}));
}
if (turnIntoSubmenu.length > 0 && !protyle.disabled) {
window.siyuan.menus.menu.append(new MenuItem({