]> BookStack Code Mirror - bookstack/blobdiff - resources/js/markdown/codemirror.js
Comments: Added HTML filter test, fixed placeholder in dark mode
[bookstack] / resources / js / markdown / codemirror.js
index b615e666bd7a1dc2ba6b39e6f1c4a33b5fa37a48..9d54c19d754b52b6489bc9aad5bdb7299f4d8542 100644 (file)
@@ -21,7 +21,9 @@ export async function init(editor) {
 
     const onScrollDebounced = debounce(editor.actions.syncDisplayPosition.bind(editor.actions), 100, false);
     let syncActive = editor.settings.get('scrollSync');
-    editor.settings.onChange('scrollSync', val => syncActive = val);
+    editor.settings.onChange('scrollSync', val => {
+        syncActive = val;
+    });
 
     const domEventHandlers = {
         // Handle scroll to sync display view