Vanessa 2023-02-27 15:19:22 +08:00
parent 879494a71c
commit cd85db32e5
6 changed files with 57 additions and 63 deletions

View file

@ -677,7 +677,14 @@ export class Gutter {
label: window.siyuan.languages.addToDeck,
icon: "iconRiffCard",
click() {
makeCard(selectsElement);
const ids: string[] = [];
selectsElement.forEach(item => {
if (item.getAttribute("data-type") === "NodeThematicBreak") {
return;
}
ids.push(item.getAttribute("data-node-id"));
});
makeCard(ids);
}
}).element);
return window.siyuan.menus.menu;
@ -1450,7 +1457,7 @@ export class Gutter {
label: window.siyuan.languages.addToDeck,
icon: "iconRiffCard",
click() {
makeCard([nodeElement]);
makeCard([nodeElement.getAttribute("data-node-id")]);
}
}).element);
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);