This commit is contained in:
Vanessa 2024-05-04 16:43:35 +08:00
parent c32d1fe09f
commit 17a619a55b
6 changed files with 7 additions and 8 deletions

View file

@ -31,7 +31,7 @@ export const addFilesToDatabase = (fileLiElements: Element[]) => {
}]);
});
}
}
};
export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: string) => {
if (protyle.title?.editElement.contains(range.startContainer) || type === "title") {
@ -100,4 +100,4 @@ export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: stri
focusByRange(range);
});
}
}
};