Make WordPress Core

Changeset 42391


Ignore:
Timestamp:
12/13/2017 05:18:27 AM (7 years ago)
Author:
westonruter
Message:

Editor: Fix determining TinyMCE editor width when in inline mode instead of iframe mode.

See #40854.
Amends [41985].
Props aduth.
Fixes #42416 for 4.9.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/js/mce-view.js

    r41985 r42391  
    864864            // Obtain the target width for the embed.
    865865            if ( self.editor ) {
    866                 maxwidth = self.editor.iframeElement.clientWidth - 20; // Minus the sum of horizontal margins and borders.
     866                maxwidth = self.editor.getBody().clientWidth;
    867867            }
    868868
Note: See TracChangeset for help on using the changeset viewer.