~canonical-sysadmins/wordpress/4.9.2

« back to all changes in this revision

Viewing changes to wp-includes/js/mce-view.js

  • Committer: axino
  • Date: 2018-01-25 07:47:10 UTC
  • Revision ID: axino@canonical.com-20180125074710-0m0j5dc8ldu3ou9t
update to wordpress 4.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
863
863
 
864
864
                        // Obtain the target width for the embed.
865
865
                        if ( self.editor ) {
866
 
                                maxwidth = self.editor.iframeElement.clientWidth - 20; // Minus the sum of horizontal margins and borders.
 
866
                                maxwidth = self.editor.getBody().clientWidth;
867
867
                        }
868
868
 
869
869
                        wp.ajax.post( this.action, {