diff --git a/src/wp-includes/js/mce-view.js b/src/wp-includes/js/mce-view.js index f5aa2337ea..8865279239 100644 --- a/src/wp-includes/js/mce-view.js +++ b/src/wp-includes/js/mce-view.js @@ -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, {