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

Commit

Permalink
Update media.html (#2452)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
love-fay authored and facebook-github-bot committed Jul 29, 2020
1 parent f6bf4ed commit a8f44b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/draft-0-10-0/media/media.html
Expand Up @@ -89,6 +89,8 @@
);

this.setState({
// The third parameter here is a space string, not an empty string
// If you set an empty string, you will get an error: Unknown DraftEntity key: null
editorState: AtomicBlockUtils.insertAtomicBlock(
newEditorState,
entityKey,
Expand Down

0 comments on commit a8f44b1

Please sign in to comment.