From a8f44b15bf9895a8d7cb6436df97961d65bd4136 Mon Sep 17 00:00:00 2001 From: fay <869770665@qq.com> Date: Tue, 28 Jul 2020 19:37:22 -0700 Subject: [PATCH] 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: https://github.com/facebook/draft-js/pull/2452 Differential Revision: D22806583 Pulled By: mrkev fbshipit-source-id: ebcc6309069c7f5d6ec417d6aa59471dfe6c1581 --- examples/draft-0-10-0/media/media.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/draft-0-10-0/media/media.html b/examples/draft-0-10-0/media/media.html index 3a6a6054fe..9f488b7925 100644 --- a/examples/draft-0-10-0/media/media.html +++ b/examples/draft-0-10-0/media/media.html @@ -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,