[wp-trac] [WordPress Trac] #31403: Hardcoded Id in WP 4.1.1 Wpeditimage

WordPress Trac noreply at wordpress.org
Sat Feb 21 07:29:50 UTC 2015


#31403: Hardcoded Id in WP 4.1.1 Wpeditimage
----------------------------+-----------------------------
 Reporter:  programmin      |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  TinyMCE         |    Version:  4.1.1
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 As of WP4.1.1 the wpeditimage plugin is referencing the editor element as:

 {{{

 iframe = document.getElementById( editor.id + '_ifr' );
 }}}

 This is less portable than the previous reference, ''and'' hard-codes a
 reference to an iframe id that doesn't exist in MCE Inline mode.

 For cases where we use MCE in an Inline mode, it would be great to have a
 filter (perhaps a jQuery.trigger with an object by reference?) to set the
 outer bounds or the element ("iframe" in current code) wpeditimage should
 use.

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


More information about the wp-trac mailing list