Vanessa 2024-09-12 22:07:32 +08:00
parent de69e19ab7
commit 9ccb1f173e
2 changed files with 62 additions and 33 deletions

View file

@ -989,6 +989,14 @@ export class Gutter {
selectsElement: [nodeElement],
type: "Blocks2Ps",
}));
turnIntoSubmenu.push(this.turnsIntoOne({
icon: "iconQuote",
accelerator: window.siyuan.config.keymap.editor.insert.quote.custom,
label: window.siyuan.languages.quote,
protyle,
selectsElement: [nodeElement],
type: "Blocks2Blockquote"
}));
if (subType !== "h1") {
turnIntoSubmenu.push(this.turnsInto({
icon: "iconH1",
@ -1065,6 +1073,14 @@ export class Gutter {
id,
type: "CancelList"
}));
turnIntoSubmenu.push(this.turnsIntoOne({
icon: "iconQuote",
accelerator: window.siyuan.config.keymap.editor.insert.quote.custom,
label: window.siyuan.languages.quote,
protyle,
selectsElement: [nodeElement],
type: "Blocks2Blockquote"
}));
if (nodeElement.getAttribute("data-subtype") === "o") {
turnIntoSubmenu.push(this.turnsOneInto({
icon: "iconList",