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:
parent
a5ff0c67c9
commit
726f5f7b2d
@ -863,7 +863,7 @@
|
|||||||
|
|
||||||
// Obtain the target width for the embed.
|
// Obtain the target width for the embed.
|
||||||
if ( self.editor ) {
|
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, {
|
wp.ajax.post( this.action, {
|
||||||
|
Loading…
Reference in New Issue
Block a user