From 130dc05517c071950523a9979046ca1885ff3e24 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 8 Feb 2022 10:09:17 +0000 Subject: [PATCH] Updated wysiwyg with dark mode patches - To better fit in with default BookStack dark theme. --- resources/js/wysiwyg/config.js | 5 ++--- resources/sass/_tinymce.scss | 28 +++++++++++++++++++++++++ resources/views/help/wysiwyg.blade.php | 1 + resources/views/layouts/plain.blade.php | 3 ++- 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/resources/js/wysiwyg/config.js b/resources/js/wysiwyg/config.js index 2c9fb0553..1a38c1f59 100644 --- a/resources/js/wysiwyg/config.js +++ b/resources/js/wysiwyg/config.js @@ -237,14 +237,13 @@ export function build(options) { file_picker_types: 'file image', file_picker_callback, paste_preprocess(plugin, args) { - let content = args.content; + const content = args.content; if (content.indexOf(' diff --git a/resources/views/layouts/plain.blade.php b/resources/views/layouts/plain.blade.php index 588bf5b7c..043d8aa48 100644 --- a/resources/views/layouts/plain.blade.php +++ b/resources/views/layouts/plain.blade.php @@ -1,6 +1,7 @@ + dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}" + class="@yield('document-class')"> {{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}