[wp-trac] [WordPress Trac] #31480: TinyMCE resize sandbox iFrame when images load

WordPress Trac noreply at wordpress.org
Mon Apr 6 13:13:16 UTC 2015


#31480: TinyMCE resize sandbox iFrame when images load
--------------------------+------------------
 Reporter:  mattheu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  TinyMCE       |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by mattheu):

 Doesn't actually fix my issue, although it does work for the testcase
 provided by @iseulde.

 My problems is actually with a local image that is loaded normally. I
 think the image has already loaded before you're attaching resize to the
 load event.

 I think the simplest way to get around this is to call resize manually
 after creating the iFrame, as well as listening for the load event on the
 iFrame window. I'm adding another patch.

 Do you think we should debounce these calls to resize?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31480#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list