mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
fd9dd885f4
commit
743bb59155
2 changed files with 34 additions and 34 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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: "```",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue