wp_tinymce_inline_scripts example

$editor_settings['defaultTemplatePartAreas'] = get_allowed_block_template_part_areas();
}

/** * Scripts */
wp_enqueue_media(
    array(
        'post' => $post->ID,
    )
);
wp_tinymce_inline_scripts();
wp_enqueue_editor();

/** * Styles */
wp_enqueue_style( 'wp-edit-post' );

/** * Fires after block assets have been enqueued for the editing interface. * * Call `add_action` on any hook before 'admin_enqueue_scripts'. * * In the function call you supply, simply use `wp_enqueue_script` and * `wp_enqueue_style` to add your functionality to the block editor. * * @since 5.0.0 */
Home | Imprint | This part of the site doesn't use cookies.