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

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


git-svn-id: https://develop.svn.wordpress.org/trunk@42390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-12-13 05:16:30 +00:00
parent a5ff0c67c9
commit 726f5f7b2d
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@
// Obtain the target width for the embed.
if ( self.editor ) {
maxwidth = self.editor.iframeElement.clientWidth - 20; // Minus the sum of horizontal margins and borders.
maxwidth = self.editor.getBody().clientWidth;
}
wp.ajax.post( this.action, {