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
const { RichText } = wp.editor;
does not works
#6745
Comments
4 tasks
In case someone still steps over this issue, make sure to include 'wp-editor' in your PHP wp_enqueue_script dependencies. |
Thanks @fvonellerts - I've been searching for an answer to this for some time, and this has solved my problem! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
RichText
should be called fromwp.blocks
, but the docs example calls fromwp.editor
.To Reproduce
Steps to reproduce the behavior:
ESNext
webpack
to build the example code.Uncaught TypeError: Cannot read property 'RichText' of undefined
my example component
Expected behavior
use
const { RichText } = wp.blocks
, it works well.Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: