-
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
PluginSidebar is not working in FSE environment #42560
Comments
If used on full site editing, import { PluginSidebar } from '@wordpress/edit-post';
// to...
import { PluginSidebar } from '@wordpress/edit-site'; #34460 is the PR for this. However, it isn't mentioned in the documentation and may be worth improving: This is also true for other plugin support documentation. |
Unfortunately, it's not working for me. console.log shows me PluginSidebar in wp.editSite, but when I import it, it's undefined. Also, it's still not allowing me to modify iframe elements because script is posted outside iframe and there is no hook to add it in iframe of FSE. |
Did you add
As this is a separate issue from this issue, please refer to the following issue. |
You are a hero. Yes, now, it's working correctly. It's bad that question from February about scripts in iframe was not resolved. |
I am glad to hear that the problem has been resolved.
Each contributor may have a huge task at hand and may not be able to respond immediately. |
Description
I believe that Sidebar plugin should work on all Gutenberg pages, but currently it's working only on post types.
In the same time, I didn't find any documentation how to add plugins to FSE pages.
Step-by-step reproduction instructions
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
The text was updated successfully, but these errors were encountered: