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

Docs tweaks #1139

Merged
merged 2 commits into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MyEditor extends React.Component {
}
render() {
return (
<Editor editorState={this.state.editorState} onChange={this.onChange} />
<Editor editorState={this.state.editorState} onChange={this.onChange} />
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/Advanced-Topics-Entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ const contentState = editorState.getCurrentContent();
const contentStateWithEntity = contentState.createEntity(
'LINK',
'MUTABLE',
{href: 'http://www.zombo.com'}
{url: 'http://www.zombo.com'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also change line 89 to use url instead of href for the sake of consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

);
const entityKey = contentStateWithEntity.getLastCreatedEntityKey();
const contentStateWithLink = Modifier.applyEntity(
contentState,
contentStateWithEntity,
selectionState,
entityKey
);
Expand Down