[wp-trac] [WordPress Trac] #49910: Embed: resizable iframes

WordPress Trac noreply at wordpress.org
Wed Apr 15 16:24:06 UTC 2020


#49910: Embed: resizable iframes
---------------------------+-----------------------------
 Reporter:  fthevenetweez  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Embeds         |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49910>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list