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

Commit a8f44b1

Browse files
love-fayfacebook-github-bot
authored andcommitted
Update media.html (#2452)
Summary: I'm just adding two lines of comments, because I made this hard to see difference mistake, and I'm worried that others are the same as me Pull Request resolved: #2452 Differential Revision: D22806583 Pulled By: mrkev fbshipit-source-id: ebcc6309069c7f5d6ec417d6aa59471dfe6c1581
1 parent f6bf4ed commit a8f44b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/draft-0-10-0/media/media.html

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
);
9090

9191
this.setState({
92+
// The third parameter here is a space string, not an empty string
93+
// If you set an empty string, you will get an error: Unknown DraftEntity key: null
9294
editorState: AtomicBlockUtils.insertAtomicBlock(
9395
newEditorState,
9496
entityKey,

0 commit comments

Comments
 (0)