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.

Built from https://develop.svn.wordpress.org/branches/4.9@42391


git-svn-id: http://core.svn.wordpress.org/branches/4.9@42220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter 2017-12-13 05:19:40 +00:00
parent 0a429ab309
commit 160e61fddf
2 changed files with 2 additions and 2 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, {

File diff suppressed because one or more lines are too long