From 49cf4dccab956d72c5035083098495c367f8a615 Mon Sep 17 00:00:00 2001 From: Umang Galaiya Date: Wed, 13 Feb 2019 20:33:57 +0530 Subject: [PATCH] [Docs] Rename DraftEditorBlock to EditorBlock The `DraftEditorBlock` component is exposed to the public API as `EditorBlock`. https://github.com/facebook/draft-js/blob/b4183b1519edcd075325adae0cb208551dc80f50/src/Draft.js#L45 --- docs/Advanced-Topics-Block-Components.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Advanced-Topics-Block-Components.md b/docs/Advanced-Topics-Block-Components.md index 59b4a0aca8..8086c4c661 100644 --- a/docs/Advanced-Topics-Block-Components.md +++ b/docs/Advanced-Topics-Block-Components.md @@ -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 @@ -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,