Make WordPress Core

Ticket #42416: 42416.diff

File 42416.diff, 476 bytes (added by aduth, 7 years ago)
  • src/wp-includes/js/mce-view.js

    diff --git src/wp-includes/js/mce-view.js src/wp-includes/js/mce-view.js
    index f5aa2337ea..8865279239 100644
     
    863863
    864864                        // Obtain the target width for the embed.
    865865                        if ( self.editor ) {
    866                                 maxwidth = self.editor.iframeElement.clientWidth - 20; // Minus the sum of horizontal margins and borders.
     866                                maxwidth = self.editor.getBody().clientWidth;
    867867                        }
    868868
    869869                        wp.ajax.post( this.action, {