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,
type: "Blocks2Blockquote"
}));
turnIntoSubmenu.push(this.turnsIntoOne({
menuId: "callout",
icon: "iconCallout",
label: window.siyuan.languages.callout,
protyle,
selectsElement,
type: "Blocks2Callout"
}));
// turnIntoSubmenu.push(this.turnsIntoOne({
// menuId: "callout",
// icon: "iconCallout",
// label: window.siyuan.languages.callout,
// protyle,
// selectsElement,
// type: "Blocks2Callout"
// }));
}
turnIntoSubmenu.push(this.turnsInto({
menuId: "paragraph",
@ -1015,14 +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.turnsIntoOne({
// menuId: "callout",
// icon: "iconCallout",
// label: window.siyuan.languages.callout,
// protyle,
// selectsElement: [nodeElement],
// type: "Blocks2Callout"
// }));
turnIntoSubmenu.push(this.turnsInto({
menuId: "heading1",
icon: "iconH1",
@ -1102,14 +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"
}));
// 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",
@ -1202,14 +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"
}));
// 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",

View file

@ -130,13 +130,13 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
id: "quote",
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>`,
},{
}, /*{
filter: [window.siyuan.languages.callout, "callout", "ts", "提示", "tishi"],
id: "callout",
value: `> [!NOTE]
> ${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>`,
}, {
},*/ {
filter: [window.siyuan.languages.code, "code block", "代码块", "daimakuai", "dmk"],
id: "code",
value: "```",