parent
5933cf3586
commit
c49f4dd11e
|
@ -43,6 +43,9 @@ onDOMscriptReady('/codemirror.js').then(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
CodeMirror.defineInitHook(cm => {
|
CodeMirror.defineInitHook(cm => {
|
||||||
|
if (!cm.display.wrapper.closest('#sections')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (prefs.get('editor.livePreview') && styleId) {
|
if (prefs.get('editor.livePreview') && styleId) {
|
||||||
cm.on('changes', updatePreview);
|
cm.on('changes', updatePreview);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user