mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-18 14:35:27 +01:00
This commit is contained in:
parent
0c6c90a82d
commit
12ebc120a0
10 changed files with 184 additions and 119 deletions
|
|
@ -816,8 +816,12 @@ export class Gutter {
|
|||
accelerator: window.siyuan.config.keymap.general.move.custom,
|
||||
icon: "iconMove",
|
||||
click: () => {
|
||||
movePathTo((toPath) => {
|
||||
hintMoveBlock(toPath[0], selectsElement, protyle);
|
||||
movePathTo({
|
||||
cb: (toPath) => {
|
||||
hintMoveBlock(toPath[0], selectsElement, protyle);
|
||||
},
|
||||
rootIDs: [protyle.block.rootID],
|
||||
flashcard: false
|
||||
});
|
||||
}
|
||||
}).element);
|
||||
|
|
@ -1372,8 +1376,12 @@ export class Gutter {
|
|||
label: window.siyuan.languages.move,
|
||||
accelerator: window.siyuan.config.keymap.general.move.custom,
|
||||
click: () => {
|
||||
movePathTo((toPath) => {
|
||||
hintMoveBlock(toPath[0], [nodeElement], protyle);
|
||||
movePathTo({
|
||||
cb: (toPath) => {
|
||||
hintMoveBlock(toPath[0], [nodeElement], protyle);
|
||||
},
|
||||
flashcard: false,
|
||||
rootIDs: [protyle.block.rootID],
|
||||
});
|
||||
}
|
||||
}).element);
|
||||
|
|
|
|||
|
|
@ -924,6 +924,13 @@ export const turnsIntoOneTransaction = (options: {
|
|||
parentElement.setAttribute("data-node-id", id);
|
||||
parentElement.setAttribute("data-type", "NodeBlockquote");
|
||||
parentElement.innerHTML = '<div class="protyle-attr" contenteditable="false"></div>';
|
||||
} else if (options.type === "Blocks2Callout") {
|
||||
// TODO
|
||||
parentElement = document.createElement("div");
|
||||
parentElement.classList.add("bq");
|
||||
parentElement.setAttribute("data-node-id", id);
|
||||
parentElement.setAttribute("data-type", "NodeBlockquote");
|
||||
parentElement.innerHTML = '<div class="protyle-attr" contenteditable="false"></div>';
|
||||
} else if (options.type.endsWith("Ls")) {
|
||||
parentElement = document.createElement("div");
|
||||
parentElement.classList.add("list");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue