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

Commit 8514b57

Browse files
umanghomefacebook-github-bot
authored andcommitted
Rename DraftEditorBlock to EditorBlock (#2002)
Summary: **Summary** The `DraftEditorBlock` component is exposed to the public API as `EditorBlock`, while the [documentation](https://draftjs.org/docs/advanced-topics-block-components) still mentions `DraftEditorBlock`. https://github.com/facebook/draft-js/blob/b4183b1519edcd075325adae0cb208551dc80f50/src/Draft.js#L45 Pull Request resolved: #2002 Differential Revision: D15239547 Pulled By: claudiopro fbshipit-source-id: 43556827d1bc571e98b528562c88038f195534c7
1 parent e8e0bcf commit 8514b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Advanced-Topics-Block-Components.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class EditorWithMedia extends React.Component {
5858
```
5959

6060
If no custom renderer object is returned by the `blockRendererFn` function,
61-
`Editor` will render the default `DraftEditorBlock` text block component.
61+
`Editor` will render the default `EditorBlock` text block component.
6262

6363
The `component` property defines the component to be used, while the optional
6464
`props` object includes props that will be passed through to the rendered
@@ -70,7 +70,7 @@ It is strongly recommended that you use `editable: false` if your custom
7070
component will not contain text.
7171

7272
If your component contains text as provided by your `ContentState`, your custom
73-
component should compose a `DraftEditorBlock` component. This will allow the
73+
component should compose an `EditorBlock` component. This will allow the
7474
Draft framework to properly maintain cursor behavior within your contents.
7575

7676
By defining this function within the context of a higher-level component,

0 commit comments

Comments
 (0)