Skip to content
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

Assets Files do not load inside the responsive editor iframe after WP 5.9 update. #40421

Closed
RajkiranBagal opened this issue Apr 18, 2022 · 2 comments

Comments

@RajkiranBagal
Copy link

Description

We have used the enqueue_block_editor_assets hook & enqueued a CSS file inside that.

That CSS file successfully loads inside the editor on Desktop preview.

When we switch the preview to Mobile/Tablet then all the Markup is loaded inside an iframe, but the CSS file is not loaded inside it.

Due to which, it breaks things on responsive mode.

Step-by-step reproduction instructions

  1. Enqueue any CSS file using wp_enqueue_style function on enqueue_block_editor_assets hook.
  2. Go to the Editor, On Desktop you will the file is loading.
  3. Now switch preview to Tablet/Mobile.
  4. The CSS file will not load inside the iframe.

Screenshots, screen recording, code snippet

No response

Environment info

  • Using Gutenberg version 13.0.0
  • Issue reproduces on both Google Chrome & Mozilla Firefox browsers when the Gutenberg plugin is active.
  • When Gutenberg Plugin is deactivated it only reproduces on the Mozilla Firefox browser.

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

@ALJ
Copy link

ALJ commented Apr 18, 2022

This might be a duplicate of #38673

@ndiego
Copy link
Member

ndiego commented Apr 22, 2022

Yes, this appears to be a duplicate of #38673. Since more discussion is taking place on that issue, I am going to close this in favor of #38673. Thank you for reporting this @RajkiranBagal! Keep an eye on the other issue as we work towards a solution.

@ndiego ndiego closed this as completed Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants