file_picker_types: 'file image',
file_picker_callback,
paste_preprocess(plugin, args) {
- let content = args.content;
+ const content = args.content;
if (content.indexOf('<img src="file://') !== -1) {
args.content = '';
}
},
init_instance_callback(editor) {
- let head = editor.getDoc().querySelector('head');
- console.log(fetchCustomHeadContent());
+ const head = editor.getDoc().querySelector('head');
head.innerHTML += fetchCustomHeadContent();
},
setup(editor) {
+// Custom full screen mode
.tox.tox-fullscreen {
position: fixed;
top: 0;
z-index: 100;
}
+// In editor body overrides
.page-content.mce-content-body {
padding-block-start: 1rem;
padding-block-end: 1rem;
display: block;
}
+// In editor line height override
.page-content.mce-content-body p {
line-height: 1.6;
}
+// Pad out bottom of editor
.page-content.mce-content-body > :last-child {
margin-bottom: 5rem;
}
+// Center toolbar items
.tox-toolbar__primary {
justify-content: center;
}
+
+/**
+ * Dark Mode Overrides
+ */
+.dark-mode .tox .tox-toolbar__primary,
+.dark-mode .tox .tox-menu,
+.dark-mode .tox .tox-dialog__header,
+.dark-mode .tox .tox-dialog,
+.dark-mode .tox .tox-dialog__footer,
+.dark-mode .tox .tox-pop__dialog,
+.dark-mode .tox.tox-tinymce-aux .tox-toolbar__overflow {
+ background-color: #333;
+}
+.dark-mode .tox .tox-tbtn svg,
+.dark-mode .tox .tox-tbtn,
+.dark-mode .tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled)
+{
+ color: #dbdbdb;
+ fill: #dbdbdb;
+}
+
+
+
/**
* Format Menu Hacks
*/
<!DOCTYPE html>
<html lang="{{ config('app.lang') }}"
- dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}">
+ dir="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
+ class="@yield('document-class')">
<head>
<title>{{ isset($pageTitle) ? $pageTitle . ' | ' : '' }}{{ setting('app-name') }}</title>