WordPress.org

Make WordPress Core

Opened 4 months ago

#49910 new enhancement

Embed: resizable iframes

Reported by: fthevenetweez Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Embeds Keywords:
Focuses: Cc:

Description

Hi,

I am a developer at Weezevent (https://www.weezevent.com/en-gb), a ticketing solution.

I am currently developing an oEmbed provider to embed our registration widget in WordPress, that returns a "rich" embed containing an iframe with a fixed height.

It technically works but our content height changes as the user progresses through the registration steps, so when our content is small it leaves a big gap between the end and the next paragraph in Wordpress; and when our content is big the iframe becomes scrollable. In both cases it's not looking good and not mobile friendly.

Our default integration uses a js script to monitor the content size and dynamically resize the iframe.
You can check an integration using our js script here https://cabaretvert.com/billets/
Scroll down to the "Déjà commandé" part and fold the categories or select a quantity and click "Suite" to trigger the resizing.


I was wondering if you'd be willing to integrate such a script in Wordpress and enable it for iframe embeds ?
I'm sure it would also be useful for other oEmbed providers.


I know we could write a plugin to allow unfiltered embeds, but the vast majority of ours users are not technical and asking them to install a plugin will scare them off.
(I'd also take being added to the official embed whitelist, but we don't fit the "globally well-known" requirement.)

Cheers
Florent

Change History (0)

Note: See TracTickets for help on using tickets.