Make WordPress Core

Changeset 42390 for trunk


Ignore:
Timestamp:
12/13/2017 05:16:30 AM (9 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 trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mce-view.js

    r41985 r42390  
    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.