summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/_enqueues/wp/mce-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/_enqueues/wp/mce-view.js')
-rw-r--r--src/js/_enqueues/wp/mce-view.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/js/_enqueues/wp/mce-view.js b/src/js/_enqueues/wp/mce-view.js
index e0439c41c7..1fca3d6d35 100644
--- a/src/js/_enqueues/wp/mce-view.js
+++ b/src/js/_enqueues/wp/mce-view.js
@@ -565,10 +565,12 @@
dom.add( node, 'span', { 'class': 'wpview-end' } );
} );
- // Bail if the iframe node is not attached to the DOM.
- // Happens when the view is dragged in the editor.
- // There is a browser restriction when iframes are moved in the DOM. They get emptied.
- // The iframe will be rerendered after dropping the view node at the new location.
+ /*
+ * Bail if the iframe node is not attached to the DOM.
+ * Happens when the view is dragged in the editor.
+ * There is a browser restriction when iframes are moved in the DOM. They get emptied.
+ * The iframe will be rerendered after dropping the view node at the new location.
+ */
if ( ! iframe.contentWindow ) {
return;
}