Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 3043573

Browse files
Tee Xiefacebook-github-bot
Tee Xie
authored andcommitted
Support post processor on paste entities.
Summary: this is to address the case where people paste content from quip or google doc which breaks KM editor. Differential Revision: D16833432 fbshipit-source-id: cc853284c833f131e11930cc4cf18714809071ac
1 parent 0375c0e commit 3043573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/base/DraftEditorProps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export type DraftEditorProps = {
187187

188188
// Overrides for cut, copy & paste, which can be used to implement custom
189189
// behavior like entity cut/copy/paste (see PR #1784)."
190-
onPaste?: (DraftEditor, SyntheticClipboardEvent<>) => void,
190+
onPaste?: (DraftEditor, SyntheticClipboardEvent<>) => void | Promise<void>,
191191
onCut?: (DraftEditor, SyntheticClipboardEvent<>) => void,
192192
onCopy?: (DraftEditor, SyntheticClipboardEvent<>) => void,
193193
};

0 commit comments

Comments
 (0)