mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
7786ce9c3d
commit
3d8208f25b
1 changed files with 5 additions and 3 deletions
|
|
@ -96,9 +96,11 @@ export const setPadding = (protyle: IProtyle) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (window.siyuan.config.editor.codeSyntaxHighlightLineNum) {
|
if (window.siyuan.config.editor.codeSyntaxHighlightLineNum) {
|
||||||
protyle.wysiwyg.element.querySelectorAll('.code-block [contenteditable="true"]').forEach((block: HTMLElement) => {
|
setTimeout(() => { // https://github.com/siyuan-note/siyuan/issues/5612
|
||||||
lineNumberRender(block);
|
protyle.wysiwyg.element.querySelectorAll('.code-block [contenteditable="true"]').forEach((block: HTMLElement) => {
|
||||||
});
|
lineNumberRender(block);
|
||||||
|
});
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
if (window.siyuan.config.editor.displayBookmarkIcon) {
|
if (window.siyuan.config.editor.displayBookmarkIcon) {
|
||||||
const editorAttrElement = document.getElementById("editorAttr");
|
const editorAttrElement = document.getElementById("editorAttr");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue