🚨
This commit is contained in:
parent
8ed32fe65f
commit
2222cc7572
3 changed files with 6 additions and 7 deletions
|
@ -1234,6 +1234,6 @@ const genColDataByType = (type: TAVCol, id: string) => {
|
|||
width: "",
|
||||
wrap: false,
|
||||
calc: null
|
||||
}
|
||||
return colData
|
||||
}
|
||||
};
|
||||
return colData;
|
||||
};
|
||||
|
|
|
@ -7,7 +7,6 @@ import {focusBlock} from "../../util/selection";
|
|||
import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
|
||||
import {stickyRow} from "./row";
|
||||
import {getCalcValue} from "./calc";
|
||||
import {openMenuPanel} from "./openMenuPanel";
|
||||
import {renderAVAttribute} from "./blockAttr";
|
||||
|
||||
export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, viewID?: string) => {
|
||||
|
|
|
@ -199,7 +199,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
|
|||
sideElement = selectElements[0].previousElementSibling;
|
||||
if (!sideElement) {
|
||||
sideIsNext = true;
|
||||
sideElement = selectElements[selectElements.length - 1].nextElementSibling
|
||||
sideElement = selectElements[selectElements.length - 1].nextElementSibling;
|
||||
}
|
||||
} else {
|
||||
sideElement = selectElements[selectElements.length - 1].nextElementSibling;
|
||||
|
@ -227,7 +227,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
|
|||
sideElement = getNextBlock(topElement);
|
||||
}
|
||||
} else {
|
||||
sideElement = getNextBlock(topElement)
|
||||
sideElement = getNextBlock(topElement);
|
||||
sideIsNext = true;
|
||||
if (!sideElement) {
|
||||
sideIsNext = false;
|
||||
|
@ -579,4 +579,4 @@ export const removeImage = (imgSelectElement: Element, nodeElement:HTMLElement,
|
|||
imgSelectElement.remove();
|
||||
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);
|
||||
focusByWbr(nodeElement, range);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue