1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Updated wysiwyg with dark mode patches

- To better fit in with default BookStack dark theme.
This commit is contained in:
Dan Brown
2022-02-08 10:09:17 +00:00
parent 572d8b3700
commit 130dc05517
4 changed files with 33 additions and 4 deletions

View File

@ -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('<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) {