Switching from block to classic visual and update page corrupts YT embed code
-
If I have some Youtube video embeds in block editor (using block embeds) then switch to classic editor viewing in visual all is fine.
But if I then update the visual editor at all (even with no edits) then the videos do not show on the page.
If I look in the classic editor text (code) view I see the last few lines of code
<div class="wp-block-embed__wrapper">https://youtu.be/xxxxx</div> </figure> <!-- /wp:embed -->
If I just change some line breaks in the last three lines slightly to this:
<div class="wp-block-embed__wrapper"> https://youtu.be/xxxxx </div></figure> <!-- /wp:embed -->
And all works fine again.
Could it be the classic visual editor is adding some invisble <p> tags or something that breaks it?something
- The topic ‘Switching from block to classic visual and update page corrupts YT embed code’ is closed to new replies.