From 9ccce668eaaa157282516415477ec30a242788f8 Mon Sep 17 00:00:00 2001 From: Mohamed Moussa Date: Mon, 17 Apr 2017 19:59:28 -0700 Subject: [PATCH] Fixed incorrect entity documentation (#1149) --- docs/Advanced-Topics-Entities.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Advanced-Topics-Entities.md b/docs/Advanced-Topics-Entities.md index 9ab13575cd..c752f1660d 100644 --- a/docs/Advanced-Topics-Entities.md +++ b/docs/Advanced-Topics-Entities.md @@ -56,7 +56,7 @@ add rich rendering to your editor based on entity metadata. ## Creating and Retrieving Entities Entities should be created using `contentState.createEntity`, which accepts the -three properties above as arguments. This method returns a new `ContentState` record updated to include the newly created entity, then you can call `contentState.getLastCreatedEntityKey` to get the key of the newly created entity record. +three properties above as arguments. This method returns a `ContentState` record updated to include the newly created entity, then you can call `contentState.getLastCreatedEntityKey` to get the key of the newly created entity record. This key is the value that should be used when applying entities to your content. For instance, the `Modifier` module contains an `applyEntity` method: