Make WordPress Core

Changeset 31180


Ignore:
Timestamp:
01/14/2015 09:32:23 PM (9 years ago)
Author:
azaozz
Message:

TinyMCE: select the iframe element by id. Needed as some browser extensions insert extra elements in the page. Props avryl, see #30785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r30839 r31180  
    186186        toolbarWidth = toolbarNode.offsetWidth;
    187187        toolbarHalf = toolbarWidth / 2;
    188         iframe = editor.getContentAreaContainer().firstChild;
     188        iframe = document.getElementById( editor.id + '_ifr' );
    189189        iframePos = DOM.getPos( iframe );
    190190        iframeWidth = iframe.offsetWidth;
Note: See TracChangeset for help on using the changeset viewer.