diff --git a/packages/editor/README.md b/packages/editor/README.md index f25cab506df1ef..a98b522693ce20 100644 --- a/packages/editor/README.md +++ b/packages/editor/README.md @@ -1242,7 +1242,11 @@ _Returns_ ### PostTextEditor -Undocumented declaration. +Displays the Post Text Editor along with content in Visual and Text mode. + +_Returns_ + +- `JSX.Element|null`: The rendered PostTextEditor component. ### PostTitle diff --git a/packages/editor/src/components/post-text-editor/index.js b/packages/editor/src/components/post-text-editor/index.js index c07d72f15c4a9d..c3dc61a0b4a2ef 100644 --- a/packages/editor/src/components/post-text-editor/index.js +++ b/packages/editor/src/components/post-text-editor/index.js @@ -19,6 +19,11 @@ import { VisuallyHidden } from '@wordpress/components'; */ import { store as editorStore } from '../../store'; +/** + * Displays the Post Text Editor along with content in Visual and Text mode. + * + * @return {JSX.Element|null} The rendered PostTextEditor component. + */ export default function PostTextEditor() { const instanceId = useInstanceId( PostTextEditor ); const { content, blocks, type, id } = useSelect( ( select ) => {