-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
RichText: Saving Meta #23304
Comments
@adamrob-me Just wondering if this is a bug report or a help request? The phrasing makes it sound like a help request, but the bug report template is being used. |
I believe it is a bug... |
I am experiencing the same issue as @adamrob-me. It also happens when trying to use a RichText component to store post meta in a block as demonstrated in the tutorial: https://developer.wordpress.org/block-editor/tutorials/metabox/meta-block-1-intro/. Works fine initially, but when you reload the page and make an edit, then save, the value goes back to what was stored in postmeta on the initial page load. |
Its been over 6 months since I raised this issue - and it is still there.... |
Is the Custom Fields panel enabled? If that panel is enabled, there is a known issue where updates from the block will be overwritten by data in the panel. #23078 If the custom fields panel is enabled, we would like to close this ticket and merge it with #23078. |
I would like to close this issue as I believe it is the same as #23078 . |
Describe the bug
I want to save some HTML to my meta data using the rich text component.
To reproduce
Steps to reproduce the behavior:
My code to register the meta key:
my JS for the rich text control:
Expected behavior
Meta data to always save.
Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: