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

Commit

Permalink
Rename DraftEditorBlock to EditorBlock (#2002)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
umanghome authored and facebook-github-bot committed May 7, 2019
1 parent e8e0bcf commit 8514b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Advanced-Topics-Block-Components.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class EditorWithMedia extends React.Component {
```

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

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

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

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

0 comments on commit 8514b57

Please sign in to comment.