1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 13:11:17 +02:00

fix trailing space (#1337)

This commit is contained in:
Yifeng Wang
2017-10-29 18:37:58 -05:00
committed by Ian Storm Taylor
parent 49e35a1c25
commit 3fcaedc625

View File

@@ -250,7 +250,7 @@ function BeforePlugin() {
function onDragOver(event, change, editor) {
// If the target is inside a void node, and only in this case,
// call `preventDefault` to signal that drops are allowed.
// When the target is editable, dropping is already allowed by
// When the target is editable, dropping is already allowed by
// default, and calling `preventDefault` hides the cursor.
const node = findNode(event.target, editor.value)
if (node.isVoid) event.preventDefault()