From 5764ea559eb73db82721824cfa2fd3e3969794f9 Mon Sep 17 00:00:00 2001 From: Narendra Sishodiya <32844880+narenin@users.noreply.github.com> Date: Wed, 29 May 2024 20:10:27 +0530 Subject: [PATCH] Added documentation for PostTextEditor Component (#62099) --- packages/editor/README.md | 6 +++++- packages/editor/src/components/post-text-editor/index.js | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/editor/README.md b/packages/editor/README.md index 34528eac04bf23..47eb033e4a8cee 100644 --- a/packages/editor/README.md +++ b/packages/editor/README.md @@ -1253,7 +1253,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 ) => {