We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Inline styles ( wp_add_inline_style / $wp_styles->add_inline_style ) aren't working in the iframed Full Site Editor.
@ellatrix is working on a fix for this but I wanted to create this issue in case anyone else ran into the same bug.
function enqueue_editor_styles() { // Enqueue editor only styles. wp_enqueue_style( 'my-plugin-block-editor', plugin_dir_url( __FILE__ ) . 'build/index.css', array(), '1.0.0' ); // Add inline styles wp_add_inline_style( 'my-plugin-block-editor', 'p { font-size: 100px; }' ); } add_action( 'enqueue_block_editor_assets', 'enqueue_editor_styles' );
Here's what it looks like when this is working:
Here's what's happening in the iframed Full Site Editor:
The text was updated successfully, but these errors were encountered:
ellatrix
Successfully merging a pull request may close this issue.
Description
Inline styles ( wp_add_inline_style / $wp_styles->add_inline_style ) aren't working in the iframed Full Site Editor.
@ellatrix is working on a fix for this but I wanted to create this issue in case anyone else ran into the same bug.
Step-by-step reproduction instructions
Expected behaviour
Here's what it looks like when this is working:
Actual behaviour
Here's what's happening in the iframed Full Site Editor:
WordPress information
Device information
The text was updated successfully, but these errors were encountered: