Skip to content

Commit dc27624

Browse files
GordyDfacebook-github-bot
authored andcommitted
Add list of supported types for ContentBlock for docs
Summary: This addresses the issue raised in facebookarchive#1051. I've just added a list of the types towards the top of documentation for ContentBlock. Closes facebookarchive#1459 Reviewed By: mitermayer Differential Revision: D6163067 Pulled By: mitermayer fbshipit-source-id: 9b8cc9e6da5079b35f2d4ab3caf447048090f052
1 parent cd20b99 commit dc27624

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

docs/APIReference-ContentBlock.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,21 @@ A `ContentState` object contains an `OrderedMap` of these `ContentBlock` objects
1919
which together comprise the full contents of the editor.
2020

2121
`ContentBlock` objects are largely analogous to block-level HTML elements like
22-
paragraphs and list items.
22+
paragraphs and list items. The available types are:
23+
24+
- unstyled
25+
- paragraph
26+
- header-one
27+
- header-two
28+
- header-three
29+
- header-four
30+
- header-five
31+
- header-six
32+
- unordered-list-item
33+
- ordered-list-item
34+
- blockquote
35+
- code-block
36+
- atomic
2337

2438
New `ContentBlock` objects may be created directly using the constructor.
2539
Expected Record values are detailed below.

0 commit comments

Comments
 (0)