Null in window.wp.data.select(‘core/editor’)
-
Hi guys,
we are developers of the theme TheGem. We are facing the following issue:
in blog post page options (classic editor mode) when your plugin is active window.wp.data.select(‘core/editor’) always returns null. We use window.wp.data.select(‘core/editor’) in order to read/write the format and the excerpt of the blog post in this way:window.wp.data.select(‘core/editor’).getEditedPostAttribute(‘excerpt’);
window.wp.data.dispatch( ‘core/editor’ ).editPost( { excerpt: value } );
window.wp.data.select(‘core/editor’).getEditedPostAttribute(‘format’);
window.wp.data.dispatch( ‘core/editor’).editPost({format: value });We can provide a link so you can check this. The question is: why window.wp.data.select(‘core/editor’) is returning null when your plugin is active? Would you be so kind to look into this issue?
Thank you!
Regards,
Gregor
- The topic ‘Null in window.wp.data.select(‘core/editor’)’ is closed to new replies.