Skip to content

Commit 3668949

Browse files
committed
Input WYSIWYG: Fixed up some dark mode elements
1 parent 7cd0629 commit 3668949

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

resources/js/wysiwyg/config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,15 +331,13 @@ export function buildForInput(options) {
331331
contextmenu: false,
332332
toolbar: 'bold italic link bullist numlist',
333333
content_style: getContentStyle(options),
334-
color_map: colorMap,
335334
file_picker_types: 'file',
336335
file_picker_callback: filePickerCallback,
337336
init_instance_callback(editor) {
338337
const head = editor.getDoc().querySelector('head');
339338
head.innerHTML += fetchCustomHeadContent();
340-
},
341-
setup(editor) {
342-
//
339+
340+
editor.contentDocument.documentElement.classList.toggle('dark-mode', options.darkMode);
343341
},
344342
};
345343
}

resources/sass/_forms.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ input[type=color] {
408408

409409
.description-input > .tox-tinymce {
410410
border: 1px solid #DDD !important;
411+
@include lightDark(border-color, #DDD !important, #000 !important);
411412
border-radius: 3px;
412413
.tox-toolbar__primary {
413414
justify-content: end;

resources/views/books/parts/form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040

4141
<div class="form-group collapsible" component="collapsible" id="template-control">
42-
<button refs="collapsible@trigger" type="button" class="collapse-title text-primary" aria-expanded="false">
42+
<button refs="collapsible@trigger" type="button" class="collapse-title text-link" aria-expanded="false">
4343
<label for="template-manager">{{ trans('entities.books_default_template') }}</label>
4444
</button>
4545
<div refs="collapsible@content" class="collapse-content">

0 commit comments

Comments
 (0)