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

Commit

Permalink
Fixed incorrect entity documentation (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmoussa authored Apr 18, 2017
1 parent 59f4ad2 commit 9ccce66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Advanced-Topics-Entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9ccce66

Please sign in to comment.