🚨
This commit is contained in:
parent
f7d23b41fd
commit
70307c141b
2 changed files with 2 additions and 2 deletions
|
@ -618,7 +618,7 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
|
|||
|
||||
export const popSearch = (app: App, searchConfig?: any) => {
|
||||
const config: Config.IUILayoutTabSearchConfig = JSON.parse(JSON.stringify(window.siyuan.storage[Constants.LOCAL_SEARCHDATA]));
|
||||
const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString()
|
||||
const rangeText = (getCurrentEditor()?.protyle.toolbar.range || (getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : document.createRange())).toString();
|
||||
if (rangeText) {
|
||||
config.k = rangeText;
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ export const removeCellOption = (protyle: IProtyle, cellElements: HTMLElement[],
|
|||
const doOperations: IOperation[] = [];
|
||||
const undoOperations: IOperation[] = [];
|
||||
let mSelectValue: IAVCellSelectValue[];
|
||||
const avID = blockElement.getAttribute("data-av-id")
|
||||
const avID = blockElement.getAttribute("data-av-id");
|
||||
cellElements.forEach((item, elementIndex) => {
|
||||
if (!blockElement.contains(item)) {
|
||||
const rowElement = hasClosestByClassName(item, "av__row");
|
||||
|
|
Loading…
Add table
Reference in a new issue