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);
});
}
}
};

View file

@ -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>;