mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
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:
parent
0a429ab309
commit
160e61fddf
@ -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, {
|
||||
|
2
wp-includes/js/mce-view.min.js
vendored
2
wp-includes/js/mce-view.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user