mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
This commit is contained in:
parent
441b6f7f65
commit
b60f84fe09
5 changed files with 118 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ export const addFilesToDatabase = (fileLiElements: Element[]) => {
|
|||
};
|
||||
|
||||
export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: string) => {
|
||||
if (protyle.title?.editElement?.contains(range.startContainer) || type === "title") {
|
||||
if ((range && protyle.title?.editElement?.contains(range.startContainer)) || type === "title") {
|
||||
openSearchAV("", protyle.breadcrumb.element, (listItemElement) => {
|
||||
const avID = listItemElement.dataset.avId;
|
||||
transaction(protyle, [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue