]> BookStack Code Mirror - bookstack/commit
Attachments: Fixed drag into editor in Chrome
authorDan Brown <redacted>
Mon, 29 Apr 2024 18:21:13 +0000 (19:21 +0100)
committerDan Brown <redacted>
Mon, 29 Apr 2024 18:21:13 +0000 (19:21 +0100)
commit493d8027cd99656cdbeb92c01da99b5baa485a09
tree1de902d12dc92ddadc6c2f234d13e1f837cf4dfa
parent06bb55184c3ae84c64f370d2adb37786ac804c58
Attachments: Fixed drag into editor in Chrome

Seemed to be chrome specific from testing.
Required editors to have preventDefault called on dragover.
Tested in Chrome, FF, & Safari.
Tested in both editors, and re-tested text/image drop to ensure still
works.

Fixed #4975
resources/js/markdown/codemirror.js
resources/js/wysiwyg/drop-paste-handling.js