]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/config.js
Input WYSIWYG: Fixed up some dark mode elements
[bookstack] / resources / js / wysiwyg / config.js
index f669849ade879821160509ca4a0bbe374b5108b5..963e2970d341356d83f685994026ab9091790c8c 100644 (file)
@@ -331,15 +331,13 @@ export function buildForInput(options) {
         contextmenu: false,
         toolbar: 'bold italic link bullist numlist',
         content_style: getContentStyle(options),
-        color_map: colorMap,
         file_picker_types: 'file',
         file_picker_callback: filePickerCallback,
         init_instance_callback(editor) {
             const head = editor.getDoc().querySelector('head');
             head.innerHTML += fetchCustomHeadContent();
-        },
-        setup(editor) {
-            //
+
+            editor.contentDocument.documentElement.classList.toggle('dark-mode', options.darkMode);
         },
     };
 }