This commit is contained in:
Vanessa 2023-09-13 17:32:07 +08:00
parent 3936f3b9aa
commit cf1464e2ef

View file

@ -20,7 +20,7 @@ export const resize = (protyle: IProtyle) => {
});
}
if (window.siyuan.config.editor.codeSyntaxHighlightLineNum) {
protyle.wysiwyg.element.querySelectorAll('.code-block [contenteditable="true"]').forEach((block: HTMLElement) => {
protyle.wysiwyg.element.querySelectorAll(".code-block .protyle-linenumber").forEach((block: HTMLElement) => {
lineNumberRender(block);
});
}