You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve documentation for deprecated wp.editor.RichText.Content #54815
The documentation for the wp.editor.RichText component should be updated to reflect that it is deprecated and should be replaced with wp.blockEditor.RichText.
Steps to reproduce:
Go to the WordPress documentation page for the wp.editor.RichText component.
Scroll down to the section titled "Usage".
Note that the documentation says to use const { RichText } = wp.editor;.
Expected behavior:
The documentation should say to use const { RichText } = wp.blockEditor; instead.
Actual behavior:
The documentation says to use const { RichText } = wp.editor;.
Go to the WordPress documentation page for the wp.editor.RichText component.
Scroll down to the section titled "Usage".
Note that the documentation says to use const { RichText } = wp.editor;.
Screenshots, screen recording, code snippet
Environment info
I have been using a late version of WordPress. 6.3
I use the chrome browser. Desktop. Windows 11Chrome
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Go to the WordPress documentation page for the wp.editor.RichText component.
Scroll down to the section titled "Usage".
Note that the documentation says to use const { RichText } = wp.editor;.
Activity
waviaei commentedon Dec 6, 2023
Checking at the document https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/src/components/rich-text/README.md
I could no longer find the section "Usage", and the usage example which uses
const { RichText } = wp.editor;.Looking at the log, this has been fixed in #55841 on Nov 3, after this issue was created.
24bf989#diff-c7f1fa97855ed23061eacc8c8fe0771c34d049f5ced0fbc10f2eb4aa43c23643
Then, vanilla JS example has been removed all together at #56121
So I think we can mark this issue as resolved and close it!
t-hamano commentedon Dec 8, 2023
@TanzimHossain2 Thanks for the report.
As mentioned in the previous comment, I would like to close this problem because there is no longer a string called
const { RichText } = wp.editor;.