]> BookStack Code Mirror - bookstack/commit
Fixed code-block drag+drop handling
authorDan Brown <redacted>
Sat, 15 Feb 2020 21:37:41 +0000 (21:37 +0000)
committerDan Brown <redacted>
Sat, 15 Feb 2020 21:37:41 +0000 (21:37 +0000)
commit54a4c6e6787734557f71e8a21719a96e9b09fee4
treea7aeb959b777dc0bd2a5fb2a6b9c9ec11f1ff0aa
parent29cc35a304e4ca19db6bad77087fdf1b8a3f8ac5
Fixed code-block drag+drop handling

- Added custom handling, Tracks if contenteditable blocks are being dragged. On drop the selection location will be roughly checked to put the block above or below the cursor block root element.
resources/js/components/wysiwyg-editor.js