• Hello,

    I’ve just updated WP to 6.2 released yesterday.

    Custom editor.css file that doesn’t get enqueued anymore in the Full site editor’s iframe through the enqueue_block_editor_assets action.

    add_action('enqueue_block_editor_assets', function(){
       $theme_version = wp_get_theme()->get( 'Version' );
       $version_string = is_string( $theme_version ) ? $theme_version : false;
      
      wp_enqueue_style('mmk-editor-style', get_template_directory_uri() . '/editor.min.css', array(), $version_string);
    });

    Thank you,

    AJB

Viewing 1 replies (of 1 total)
  • Thread Starter Alexandre Bourdeaud’Hui

    (@mamoka)

    Problem solved.

    This wasn’t related to the enqueue_block_editor_assets function but caused by a “cleaner” function that was removing the id attribute from style tags, breaking WP’s enqueue system on 6.2

Viewing 1 replies (of 1 total)
  • The topic ‘enqueue_block_editor_assets not working in Full site editor’ is closed to new replies.