Skip to content

Commit 79b051b

Browse files
committed
nav.js: debug CM parent elements
1 parent eb2d93d commit 79b051b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

assets/nav.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@
129129
});
130130
console.log('CM wrappers already:', document.querySelectorAll('.cm-editor-wrap').length);
131131
console.log('CM instances already:', document.querySelectorAll('.CodeMirror').length);
132+
document.querySelectorAll('.CodeMirror').forEach((el,i) => {
133+
if(i < 3) console.log('CM', i, 'parent:', el.parentElement?.className, 'grandparent:', el.parentElement?.parentElement?.className);
134+
});
132135
if (document.querySelector('.cm-editor-wrap')) { console.log('GUARD: already rendered'); return; }
133136
document.querySelectorAll('.syntax-block, .impl-block').forEach(el => {
134137
el.style.cssText = 'display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important;';

0 commit comments

Comments
 (0)