mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 03:40:15 +01:00
This commit is contained in:
parent
879494a71c
commit
cd85db32e5
6 changed files with 57 additions and 63 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue