Make WordPress Core

Ticket #38511: 38511.2.patch

File 38511.2.patch, 686 bytes (added by iseulde, 9 years ago)
  • src/wp-includes/js/mce-view.js

     
    549549                                        iframeDoc = iframeWin.document;
    550550                                        iframeDoc.open();
    551551
     552                                        iframeWin.onunload = function() {
     553                                                console.log("unload")
     554                                        }
     555
    552556                                        iframeDoc.write(
    553557                                                '<!DOCTYPE html>' +
    554558                                                '<html>' +
     
    573577                                                                                'content: "";' +
    574578                                                                        '}' +
    575579                                                                '</style>' +
     580                                                                '<script>console.log("test")</script>' +
    576581                                                        '</head>' +
    577582                                                        '<body id="wpview-iframe-sandbox" class="' + bodyClasses + '">' +
    578583                                                                body +