diff --git a/src/wp-includes/js/mce-view.js b/src/wp-includes/js/mce-view.js
index fc6284f..86c5247 100644
|
a
|
b
|
window.wp = window.wp || {}; |
| 244 | 244 | loader: true, |
| 245 | 245 | |
| 246 | 246 | /** |
| | 247 | * Whether or not to import styles if the |
| | 248 | * preview is rendered in an iFrame. |
| | 249 | * |
| | 250 | * @type {Boolean} |
| | 251 | */ |
| | 252 | importStyles: false, |
| | 253 | |
| | 254 | /** |
| 247 | 255 | * Runs after the view instance is created. |
| 248 | 256 | */ |
| 249 | 257 | initialize: function() {}, |
| … |
… |
window.wp = window.wp || {}; |
| 448 | 456 | * @param {Boolean} rendered Only set for (un)rendered nodes. Optional. |
| 449 | 457 | */ |
| 450 | 458 | setIframes: function( head, body, callback, rendered ) { |
| 451 | | var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver, |
| 452 | | importStyles = this.type === 'video' || this.type === 'audio' || this.type === 'playlist'; |
| | 459 | var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; |
| 453 | 460 | |
| 454 | 461 | this.getNodes( function( editor, node, content ) { |
| 455 | 462 | var dom = editor.dom, |
| … |
… |
window.wp = window.wp || {}; |
| 460 | 467 | content.innerHTML = ''; |
| 461 | 468 | head = head || ''; |
| 462 | 469 | |
| 463 | | if ( importStyles ) { |
| | 470 | if ( this.importStyles ) { |
| 464 | 471 | if ( ! wp.mce.views.sandboxStyles ) { |
| 465 | 472 | tinymce.each( dom.$( 'link[rel="stylesheet"]', editor.getDoc().head ), function( link ) { |
| 466 | 473 | if ( link.href && link.href.indexOf( 'skins/lightgray/content.min.css' ) === -1 && |
| … |
… |
window.wp = window.wp || {}; |
| 561 | 568 | } |
| 562 | 569 | } |
| 563 | 570 | |
| 564 | | if ( importStyles ) { |
| | 571 | if ( this.importStyles ) { |
| 565 | 572 | editor.on( 'wp-body-class-change', function() { |
| 566 | 573 | iframeDoc.body.className = editor.getBody().className; |
| 567 | 574 | } ); |
| … |
… |
window.wp = window.wp || {}; |
| 706 | 713 | av = _.extend( {}, media, { |
| 707 | 714 | action: 'parse-media-shortcode', |
| 708 | 715 | |
| | 716 | importStyles: true, |
| | 717 | |
| 709 | 718 | initialize: function() { |
| 710 | 719 | var self = this; |
| 711 | 720 | |