Title: enqueue_block_editor_assets
Last modified: July 31, 2023

---

# enqueue_block_editor_assets

 *  Resolved [Karolina Vyskocilova](https://wordpress.org/support/users/vyskoczilova/)
 * (@vyskoczilova)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/enqueue_block_editor_assets/)
 * Hi, I just tested 6.3RC2, and I am scared about all my client’s sites that use
   Gutenberg. `enqueue_block_editor_assets` hook is fired. However, the style is
   not loaded inside the iframe as it supposes to be. This hook is super essential–
   most of the time other CSS (and WP itself) CSS mess it up, or you need to add
   just a little bit more to be able to style UX etc. (for example different REM
   size or what so ever, so you can’t reuse blocks/styles CSS 1:1).
 * Example working inside 6.2 but not on 6.3 (written as a two file plugin), file
   editor-assets-test.php
 *     ```wp-block-code
       add_action('enqueue_block_editor_assets', function () {
           wp_enqueue_style('editor-assets-test', plugins_url('style.css', __FILE__));
       }, 999);
       ```
   
 * Content of `style.css` file:
 *     ```wp-block-code
       h1, h2, h3, h4 {
           color: red !important;
       }
       ```
   
 * Don’t release it as it is right now; this is not an unbreakable change. I’ve 
   seen already some ways to go through the issue – for example including a block
   with apiVersion 2 etc. 
   Best regards,Karolina

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/enqueue_block_editor_assets/#post-16937009)
 * Hi [@vyskoczilova](https://wordpress.org/support/users/vyskoczilova/) – thanks
   for reporting this. It definitely sounds like something that would good to report
   as a bug for the developers to take a look at.
 * It would be great if you could open a report at [https://github.com/WordPress/gutenberg/issues/new/choose](https://github.com/WordPress/gutenberg/issues/new/choose)
   and you can include the same testing details and screenshot you shared here.
 *  Thread Starter [Karolina Vyskocilova](https://wordpress.org/support/users/vyskoczilova/)
 * (@vyskoczilova)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/enqueue_block_editor_assets/#post-16938845)
 * Done: [https://github.com/WordPress/gutenberg/issues/53236](https://github.com/WordPress/gutenberg/issues/53236)
   
   Thanks!
 *  Moderator [jordesign](https://wordpress.org/support/users/jordesign/)
 * (@jordesign)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/enqueue_block_editor_assets/#post-16939753)
 * Great – thanks [@vyskoczilova](https://wordpress.org/support/users/vyskoczilova/)–
   I spotted that issue get added 🙂 That being the case I’m going to mark this 
   thread as resolved now 👍

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘enqueue_block_editor_assets’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 3 replies
 * 2 participants
 * Last reply from: [jordesign](https://wordpress.org/support/users/jordesign/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/enqueue_block_editor_assets/#post-16939753)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
