mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 12:41:44 +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:
committed by
Ian Storm Taylor
parent
56a9db53f4
commit
4c1392cfac
@@ -595,6 +595,7 @@ function AfterPlugin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (type == 'text' || type == 'html') {
|
if (type == 'text' || type == 'html') {
|
||||||
|
if (!text) return
|
||||||
const { value } = change
|
const { value } = change
|
||||||
const { document, selection, startBlock } = value
|
const { document, selection, startBlock } = value
|
||||||
if (startBlock.isVoid) return
|
if (startBlock.isVoid) return
|
||||||
|
Reference in New Issue
Block a user