Vanessa 2025-12-01 19:36:13 +08:00
parent fd9dd885f4
commit 743bb59155
2 changed files with 34 additions and 34 deletions

View file

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

View file

@ -130,13 +130,13 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
id: "quote", id: "quote",
value: "> " + Lute.Caret, value: "> " + Lute.Caret,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconQuote"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.quote}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.quote.custom, ">")}</div>`, html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconQuote"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.quote}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.quote.custom, ">")}</div>`,
},{ }, /*{
filter: [window.siyuan.languages.callout, "callout", "ts", "提示", "tishi"], filter: [window.siyuan.languages.callout, "callout", "ts", "提示", "tishi"],
id: "callout", id: "callout",
value: `> [!NOTE] value: `> [!NOTE]
> ${Lute.Caret}`, > ${Lute.Caret}`,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconCallout"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.callout}</span></div>`, html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconCallout"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.callout}</span></div>`,
}, { },*/ {
filter: [window.siyuan.languages.code, "code block", "代码块", "daimakuai", "dmk"], filter: [window.siyuan.languages.code, "code block", "代码块", "daimakuai", "dmk"],
id: "code", id: "code",
value: "```", value: "```",