mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 19:30:16 +01:00
🚨
This commit is contained in:
parent
c32d1fe09f
commit
17a619a55b
6 changed files with 7 additions and 8 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import {addScript} from "../util/addScript";
|
|||
import {Constants} from "../../constants";
|
||||
import {focusByOffset} from "../util/selection";
|
||||
import {setCodeTheme} from "../../util/assets";
|
||||
import {hasClosestByClassName} from "../util/hasClosest";
|
||||
|
||||
export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
|
||||
let codeElements: NodeListOf<Element>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue