mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
This commit is contained in:
parent
12ebc120a0
commit
4d2d0a8d4c
2 changed files with 65 additions and 11 deletions
|
|
@ -626,6 +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.turnsInto({
|
||||
menuId: "paragraph",
|
||||
|
|
@ -1007,6 +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.turnsInto({
|
||||
menuId: "heading1",
|
||||
icon: "iconH1",
|
||||
|
|
@ -1086,6 +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"
|
||||
}));
|
||||
if (subType !== "h1") {
|
||||
turnIntoSubmenu.push(this.turnsInto({
|
||||
menuId: "heading1",
|
||||
|
|
@ -1178,6 +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"
|
||||
}));
|
||||
if (nodeElement.getAttribute("data-subtype") === "o") {
|
||||
turnIntoSubmenu.push(this.turnsOneInto({
|
||||
menuId: "list",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue