mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨
This commit is contained in:
parent
971b7d4d2b
commit
9b7385bcb7
1 changed files with 4 additions and 2 deletions
|
|
@ -138,11 +138,13 @@ export const getTypeByCellElement = (cellElement: Element) => {
|
|||
};
|
||||
|
||||
export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type?: TAVCol) => {
|
||||
if (cellElements.length === 0 || (cellElements.length === 1 && !cellElements[0])) {
|
||||
return;
|
||||
}
|
||||
if (!type) {
|
||||
type = getTypeByCellElement(cellElements[0]);
|
||||
}
|
||||
if (type === "updated" || type === "created" || document.querySelector(".av__mask") ||
|
||||
cellElements.length === 0 || (cellElements.length === 1 && !cellElements[0])) {
|
||||
if (type === "updated" || type === "created" || document.querySelector(".av__mask")) {
|
||||
return;
|
||||
}
|
||||
if (type === "block" && (cellElements.length > 1 || !cellElements[0].getAttribute("data-detached"))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue