mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 16:44:22 +02:00
fix trailing space (#1337)
This commit is contained in:
committed by
Ian Storm Taylor
parent
49e35a1c25
commit
3fcaedc625
@@ -250,7 +250,7 @@ function BeforePlugin() {
|
|||||||
function onDragOver(event, change, editor) {
|
function onDragOver(event, change, editor) {
|
||||||
// If the target is inside a void node, and only in this case,
|
// If the target is inside a void node, and only in this case,
|
||||||
// call `preventDefault` to signal that drops are allowed.
|
// 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.
|
// default, and calling `preventDefault` hides the cursor.
|
||||||
const node = findNode(event.target, editor.value)
|
const node = findNode(event.target, editor.value)
|
||||||
if (node.isVoid) event.preventDefault()
|
if (node.isVoid) event.preventDefault()
|
||||||
|
Reference in New Issue
Block a user