]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/config.js
Split out codemirror JS to its own module
[bookstack] / resources / js / wysiwyg / config.js
index 2c9fb0553971d49eae1c1dae55c83f405133cfa3..1a38c1f597591e72674d260fec06a93b4906cc3e 100644 (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) {