1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 12:14:14 +02:00

Add default transferred text (#1333)

* fix default transfer text

* fix onPaste, revert getEventTransfer

* update comment

* Update after.js
This commit is contained in:
Yifeng Wang
2017-10-30 12:10:13 -05:00
committed by Ian Storm Taylor
parent 56a9db53f4
commit 4c1392cfac

View File

@@ -595,6 +595,7 @@ function AfterPlugin() {
}
if (type == 'text' || type == 'html') {
if (!text) return
const { value } = change
const { document, selection, startBlock } = value
if (startBlock.isVoid) return