| @@ -167,8 +167,18 @@ | ||
| 167 | 167 | */ |
| 168 | 168 | add_action( 'admin_enqueue_scripts', array( Charitable_Admin_Blocks::get_instance(), 'admin_enqueue_scripts' ) ); |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | + * Enqueue Charitable's styles for the block editor canvas (the editor iframe). | |
| 172 | + * | |
| 173 | + * Must be on `enqueue_block_assets` rather than `admin_enqueue_scripts` — that is the hook | |
| 174 | + * core collects when building the iframe's assets. | |
| 175 | + * | |
| 176 | + * @see Charitable_Admin_Blocks::enqueue_block_editor_canvas_styles() | |
| 177 | + */ | |
| 178 | +add_action( 'enqueue_block_assets', array( Charitable_Admin_Blocks::get_instance(), 'enqueue_block_editor_canvas_styles' ) ); | |
| 179 | + | |
| 180 | +/** | |
| 171 | 181 | * Enqueue Charitable's campaign builder congrats wizard related scripts & styles. |
| 172 | 182 | * |
| 173 | 183 | * @see Charitable_Campaign_Congrats_Wizard::init() |
| 174 | 184 | */ |