// Check if we're in a JSDOM test or not if ( global.window ) { // These are necessary to load TinyMCE successfully global.URL = window.URL; global.window.tinyMCEPreInit = { // Without this, TinyMCE tries to determine its URL by looking at the //