]> BookStack Code Mirror - bookstack/commit
Added tinymce de-focus toolbar hack for drawing editor load
authorDan Brown <redacted>
Mon, 25 Jul 2022 18:56:01 +0000 (19:56 +0100)
committerDan Brown <redacted>
Mon, 25 Jul 2022 18:56:01 +0000 (19:56 +0100)
commitfee3022ad8d073c8b169cb8f38b85baf8a3ebdfc
tree2805f280d9714a9d4e2ee8ca1250483a81a14af3
parent050ae01f9465a213e5e2f040813a731d003e564b
Added tinymce de-focus toolbar hack for drawing editor load

The tinymce event system would not pick up the focus within the loaded
draw.io instance, after the drawing toolbar button was clicked, hence
the toolbar would hang around.

This adds a hack to dispatch a mousedown event on the body to get the
toolbar to hide.

For #3597
resources/js/wysiwyg/plugin-codeeditor.js
resources/js/wysiwyg/plugin-drawio.js