From a3fdf471eefc6552b64736427ba3e00535b9cdc4 Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Tue, 20 Oct 2026 10:06:36 +0200 Subject: [PATCH] feat(editor): support Instagram embeds (#12373) * feat(editor): support Instagram embeds Instagram post and reel links (/p/, /reel/, /reels/, /tv/, also username-prefixed) embed via instagram.com///embed/. Uncaptioned so the height only depends on the media; 400x720 fits portrait posts and reels. Pasting Instagram's embed code works too: its loader `, + ); + await waitFor(() => { + expect(h.elements).toEqual([ + expect.objectContaining({ + type: "embeddable", + link: "https://www.instagram.com/p/BsOGulcndj-/?utm_source=ig_embed&utm_campaign=loading", + }), + ]); + }); + }); + it("should leave a paste to the host when its onPaste returns false", async () => { unmountComponent(); const onPaste = vi.fn(() => false);