Vanessa 2025-12-01 18:51:58 +08:00
parent 0c6c90a82d
commit 12ebc120a0
10 changed files with 184 additions and 119 deletions

View file

@ -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);

View file

@ -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");