If you ever run into the issue of Joomla’s tinyMCE Edit HTML Source popup window being blank, showing only “{$lang_theme_code_title}” on the Title bar, here is the explanation and solution:
The popup window is a HTML file located in
http://your-joomla-site.com/mambots/editors/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.html.
When you click “Edit HTML Source“, tinyMCE will open up this source_editor.html file using the URL defined in $mosConfig_live_site (in configuration.php), and this file in turn will execute some javascript to allow you to edit the HTML code. Due to some cross-site scripting security restriction, if you happen to visit your site with a slightly different URL than the URL in the $mosConfig_live_site, e.g. with or without the www, then the javascript in source_editor.html will not be executed properly.
For example, if your set your $mosConfig_live_site to be “http://your-joomla-site.com” and you access the Joomla admin page via “http://www.your-joomla-site.com/administrator” (notice the additional www), then the “Edit HTML Source” popup will not work due to the cross-site scripting security restriction. Because your-joomla-site.com and www.your-joomla-site.com are not considered the same, the javascript from the main tinyMCE editor cannot interact with javascript in the source_editor.html file, which is being opened through a different domain (in this case without the www).
To solve this issue, you just have to access your Joomla site via the URL that is being used in the $mosConfig_live_site variable. Another more convenient way to solve this issue is that your can write a simple redirection to redirect traffic from http://your-joomla-site.com to http://www.your-joomla-site.com (in this case your $mosConfig_live_site is set to the www domain)
Cheers!
You saved my life, man! Thx a bunch!