mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +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,
|
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",
|
||||||
|
|
|
||||||
|
|
@ -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: "```",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue