mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 23:21:47 +01:00
This commit is contained in:
parent
aaf1d9896a
commit
2cd76dc288
11 changed files with 25 additions and 43 deletions
|
|
@ -19,6 +19,7 @@ import {updateCellsValue} from "../render/av/cell";
|
|||
import {input} from "../wysiwyg/input";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {isIncludeCell} from "./table";
|
||||
import {getFieldIdByCellElement} from "../render/av/row";
|
||||
|
||||
const processAV = (range: Range, html: string, protyle: IProtyle, blockElement: HTMLElement) => {
|
||||
const tempElement = document.createElement("template");
|
||||
|
|
@ -111,7 +112,7 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:
|
|||
const selectCellElement = blockElement.querySelector(".av__cell--select") as HTMLElement;
|
||||
if (selectCellElement) {
|
||||
const sourceId = contenteditableElement.firstElementChild.getAttribute("data-id");
|
||||
const previousID = selectCellElement.dataset.blockId;
|
||||
const previousID = getFieldIdByCellElement(selectCellElement, blockElement.getAttribute("data-av-type") as TAVView);
|
||||
transaction(protyle, [{
|
||||
action: "replaceAttrViewBlock",
|
||||
avID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue