]> 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 2bd4b630b038a35eecf9de0e301079ebdd85b4fa..963e2970d341356d83f685994026ab9091790c8c 100644 (file)
@@ -329,17 +329,15 @@ export function buildForInput(options) {
         menubar: false,
         plugins: 'link autolink lists',
         contextmenu: false,
-        toolbar: 'bold italic underline link bullist numlist',
+        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);
         },
     };
 }