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

Commit

Permalink
update link to Record
Browse files Browse the repository at this point in the history
  • Loading branch information
agarwalrounak committed May 29, 2020
1 parent 6d619c6 commit 4f003df
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/APIReference-CharacterMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: CharacterMetadata
---

`CharacterMetadata` is an Immutable
[Record](http://facebook.github.io/immutable-js/docs/#/Record/Record) that
represents inline style and entity information for a single character.
[Record](https://web.archive.org/web/20150623131347/http://facebook.github.io:80/immutable-js/docs/#/Record)
that represents inline style and entity information for a single character.

`CharacterMetadata` objects are aggressively pooled and shared. If two characters
have the same inline style and entity, they are represented with the same
Expand Down
4 changes: 2 additions & 2 deletions docs/APIReference-ContentBlock.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: ContentBlock
---

`ContentBlock` is an Immutable
[Record](http://facebook.github.io/immutable-js/docs/#/Record/Record) that
represents the full state of a single block of editor content, including:
[Record](https://web.archive.org/web/20150623131347/http://facebook.github.io:80/immutable-js/docs/#/Record)
that represents the full state of a single block of editor content, including:

- Plain text contents of the block
- Type, e.g. paragraph, header, list item
Expand Down
4 changes: 2 additions & 2 deletions docs/APIReference-ContentState.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: ContentState
---

`ContentState` is an Immutable
[Record](http://facebook.github.io/immutable-js/docs/#/Record/Record) that
represents the full state of:
[Record](https://web.archive.org/web/20150623131347/http://facebook.github.io:80/immutable-js/docs/#/Record)
that represents the full state of:

- The entire **contents** of an editor: text, block and inline styles, and entity ranges.
- Two **selection states** of an editor: before and after the rendering of these contents.
Expand Down
3 changes: 2 additions & 1 deletion docs/APIReference-EditorState.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ title: EditorState

`EditorState` is the top-level state object for the editor.

It is an Immutable [Record](http://facebook.github.io/immutable-js/docs/#/Record/Record)
It is an Immutable
[Record](https://web.archive.org/web/20150623131347/http://facebook.github.io:80/immutable-js/docs/#/Record)
that represents the entire state of a Draft editor, including:

- The current text content state
Expand Down
4 changes: 3 additions & 1 deletion docs/APIReference-SelectionState.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ id: api-reference-selection-state
title: SelectionState
---

`SelectionState` is an Immutable [Record](http://facebook.github.io/immutable-js/docs/#/Record/Record) that represents a selection range in the editor.
`SelectionState` is an Immutable
[Record](https://web.archive.org/web/20150623131347/http://facebook.github.io:80/immutable-js/docs/#/Record)
that represents a selection range in the editor.

The most common use for the `SelectionState` object is via `EditorState.getSelection()`,
which provides the `SelectionState` currently being rendered in the editor.
Expand Down

0 comments on commit 4f003df

Please sign in to comment.