]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugin-drawio.js
Fixed local_secure_restricted preventing attachment uploads
[bookstack] / resources / js / wysiwyg / plugin-drawio.js
index 7d679d539231ab822db3055ccfcb74cdc590f031..54a1609217b656ad5ff74bccada288b045df3d25 100644 (file)
@@ -106,6 +106,8 @@ export function getPlugin(providedOptions) {
             icon: 'diagram',
             onAction() {
                 editor.execCommand('drawio');
+                // Hack to de-focus the tinymce editor toolbar
+                window.document.body.dispatchEvent(new Event('mousedown', {bubbles: true}));
             },
             fetch(callback) {
                 callback([