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

Fixed incorrect entity documentation #1149

Merged
merged 1 commit into from
Apr 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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