mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-15 21:25:28 +01:00
🚨
This commit is contained in:
parent
09b4304df2
commit
ab69eb5732
9 changed files with 45 additions and 73 deletions
|
|
@ -12,7 +12,7 @@ import {input} from "../wysiwyg/input";
|
|||
import {objEquals} from "../../util/functions";
|
||||
|
||||
const processAV = (range: Range, html: string, protyle: IProtyle, blockElement: HTMLElement) => {
|
||||
const tempElement = document.createElement("template")
|
||||
const tempElement = document.createElement("template");
|
||||
tempElement.innerHTML = html;
|
||||
let values: IAVCellValue[] = [];
|
||||
if (html.endsWith("]") && html.startsWith("[")) {
|
||||
|
|
@ -27,9 +27,9 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
values.push({
|
||||
text: {content: cell.textContent},
|
||||
type: "text"
|
||||
})
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
if (values && Array.isArray(values) && values.length > 0) {
|
||||
const cellElements: Element[] = Array.from(blockElement.querySelectorAll(".av__cell--active, .av__cell--select")) || [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue