Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong imports in RichText docs #55831

Closed
mrleemon opened this issue Nov 3, 2023 · 1 comment · Fixed by #55841
Closed

Wrong imports in RichText docs #55831

mrleemon opened this issue Nov 3, 2023 · 1 comment · Fixed by #55841
Assignees
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Block editor /packages/block-editor [Status] In Progress Tracking issues with work in progress [Type] Developer Documentation Documentation for developers

Comments

@mrleemon
Copy link
Contributor

mrleemon commented Nov 3, 2023

Description

Imports in the RichText component point to wp.editor instead of wp.block-editor and wp-editor instead of wp-block-editor:

https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/rich-text/README.md

Step-by-step reproduction instructions

Check the file:

https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/rich-text/README.md

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@t-hamano t-hamano added [Type] Developer Documentation Documentation for developers Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Block editor /packages/block-editor labels Nov 3, 2023
@Soean
Copy link
Member

Soean commented Nov 3, 2023

I think it should be wp.blockEditor.RichText and import { RichText } from '@wordpress/block-editor';.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Block editor /packages/block-editor [Status] In Progress Tracking issues with work in progress [Type] Developer Documentation Documentation for developers
3 participants