Skip to content

Commit

Permalink
Added documentation for PostTextEditor Component (WordPress#62099)
Browse files Browse the repository at this point in the history
  • Loading branch information
narenin authored and carstingaxion committed Jun 4, 2024
1 parent dfea8f0 commit 4cb60c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions packages/editor/src/components/post-text-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) => {
Expand Down

0 comments on commit 4cb60c1

Please sign in to comment.