How would I create an anchor link from the Test text to the embed conten? I tried adding an id="03T"
inside of the div within the embed comment block. However, when doing that I am unable to see the embed block in the visual editor.
<!-- wp:paragraph -->
<p><a href="#03T" data-type="internal" data-id="#03T">Test</a></p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2>Videos</h2>
<!-- /wp:heading -->
<!-- wp:embed {"url":"https://player.vimeo.com/video/25323516?","type":"video","providerNameSlug":"vimeo","responsive":true,"className":"wp-embed-aspect-4-3 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-4-3 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper" id="03T">
https://player.vimeo.com/video/25323516
</div></figure>
<!-- /wp:embed -->
Any ideas on what could be fixed to insert the anchor link and see it visible in the visual editor?
id
to a HTML tag doesn't give it a clickable visible link and there's no reason the editor would change that. Note that if you modify the HTML directly there's a very strong chance your block will either fail validation, or it'll be regenerated based on the block attributes in the HTML comment and the ID will vanish