mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
895ebccc9f
commit
a34538b9b5
1 changed files with 4 additions and 1 deletions
|
|
@ -278,11 +278,14 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
click() {
|
||||
openSearchAV(blockElement.getAttribute("data-av-id"), rowElements[0] as HTMLElement, (listItemElement) => {
|
||||
const srcs: { id: string, content: string }[] = [];
|
||||
const sourceIds: string[] = [];
|
||||
rowElements.forEach(item => {
|
||||
const rowId = item.getAttribute("data-id")
|
||||
srcs.push({
|
||||
content: item.querySelector(".av__cell[data-block-id] .av__celltext").textContent.trim(),
|
||||
id: item.getAttribute("data-id")
|
||||
id: rowId
|
||||
});
|
||||
sourceIds.push(rowId);
|
||||
})
|
||||
const avID = listItemElement.dataset.avId;
|
||||
transaction(protyle, [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue