Activate embeds in elements

Inserting an embed inside any element, for example, a YouTube video, currently only displays the URL path and doesn’t embed the actual video. Until this issue is resolved you can insert the following code into your functions.php or use a functionality plugin.

// Activate embeds in GP elements
add_filter( 'generate_do_block_element_content', function( $content ) {
    global $wp_embed;
    $content = $wp_embed->autoembed( $content );
    return $content;
} );

Now your embeds will work just fine!