Put your message here! Contact me for more information
 
 








 

Joomla LogoIf 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!


 

53 Responses to “Joomla TinyMCE Edit HTML Source Popup Issue



Koer
2:26 am
March 29, 2007
#20398

You saved my life, man! Thx a bunch!




Toni
1:06 pm
April 7, 2007
#22456

thank you




Fabian
12:37 am
April 10, 2007
#22751

Thanks! I’ve been trying to figure this issue for weeks!

Cheers!




Anthony
9:26 am
April 13, 2007
#23189

Thank you!

… and thanks to Google I found your page within minutes of having this issue.




Winfred
2:13 pm
April 18, 2007
#23721

life saver! thx




Ash
4:23 am
April 20, 2007
#23870

Thanks for that, that sorted my very annoying blank popup windows!




Harry
9:06 pm
April 24, 2007
#24817

Thank you, thank you, thank you.




Apprentice_GM
2:40 am
April 30, 2007
#26913

Thanks heaps for the clear explanation and solution - I’ve been trying for hours to resolve this!




4:09 am
May 11, 2007
#29333

Grazie!




Keith
11:10 am
May 24, 2007
#31497

I WISH I had found this page when I first encountered the problem. I have wasted too much time trying to figure out the problem.

THANKS!




4:18 am
May 28, 2007
#32226

Sorry, is this “..redirect traffic from..with www to w/o http://www..” has a technical meaning or just changing all our back link ? thx




12:20 pm
June 3, 2007
#35189

Thanks a lot!

This is also applicable when you want to insert a Flash (swf) file.

What a relief!




Gito
2:29 am
June 5, 2007
#36210

Thanks a lot. Without reading this page, I thought my problem could hardly resolved




9:19 pm
June 7, 2007
#38004

@Jomlo

What I meant is that you can write a rewrite rule to redirect any URL without the www to the URL with the www part. So it has a technical meaning :)

Most of the time, any link within Joomla is relative based on the URL in the configuration.php file, hence you only have to make sure that your site is accessed via the correct domain and the rest of the site should work just fine.




t3nooq
10:09 pm
June 7, 2007
#38032

thanks…u’ve save my life..




11:50 pm
June 15, 2007
#39463

What a big help this was. Thank you thank you thank you. I now understand how key the configuration.php file really is.




Viena
3:15 am
July 17, 2007
#45233

And yet again a big thx to you. We searched quite some time now, until now, it works




8:30 am
September 17, 2007
#57818

Thanks So Much! this has bothered me for about 2 months now. I should have just done a search for the fix. thanks a ton for posting this

Winston




1:18 am
September 21, 2007
#58815

Thank you.
I spent 2 hours installing other editors, then said ok, I need to fix the natural one so that html code will be displayed.
:)
Now I just type http://www.xx.com/administrator/
and it works like charm.
before I was opening http://xx.com and had problems to see html code.

m.
thank you for this explanation,




dc
3:00 am
September 21, 2007
#58841

You, sir, are an absolute star!!




4:36 am
October 6, 2007
#63217

You great!
thank you so much :)

we must be carryfully




Paige
11:28 am
October 29, 2007
#72941

Thank you just so much. That was killing me. You rock!




Anu
11:59 pm
November 1, 2007
#74060

Thanks a bunch. I was getting so frustrated with this problem for last couple of weeks…things seem fine now. You are awesome.




Sebastiano
12:50 pm
November 21, 2007
#80480

thank you very much, I was becoming mad for that…




JD
8:52 pm
November 25, 2007
#81906

Excellent, this was driving me crazy too. Thanks.




Hung
9:37 pm
November 27, 2007
#82413

Love you so much Alex. Rock on




Rick
10:26 pm
November 28, 2007
#82819

Thanks, man! I’m a Joomla! newbie and I was beating my head against the wall. I followed your instructions and BAM!….my html window appeared. Check’s in the mail…




2:03 am
December 11, 2007
#87134

I was looking for a solution for so long. Thank you so much!




2:18 pm
December 15, 2007
#88771

Thanks, Alex. This had me stumped. I’ve added a reference to your posting on my blog. I was tearing my hair out!




8:49 am
December 16, 2007
#89163

You saved my life 2, man! Thx a bunch!




7:30 am
December 29, 2007
#94496

BIG thanks! This problem has been bugging me for a LONG time!




Marco Saluzzo
12:58 pm
January 3, 2008
#96444

Thanks Alex. I was about to destroy yet another key board!!




7:20 am
January 4, 2008
#96734

Many Many thanks
There are no words to express how much i am grateful

Thanks again
and keep up the good work




7:00 pm
January 13, 2008
#101181

Thanks heaps man, you’re a lifesaver!




Julia
10:16 am
January 18, 2008
#103140

Whoo-hoo! I was considering re-installing the whole CMS before I found this post =-O. Thank you.




2:30 pm
January 29, 2008
#108306

So simple. It’s always the little things that are the buggers. THANKS!




Igor
4:56 pm
January 30, 2008
#108716

Thanks for the blog. Really helped me to understand what’s goin’ on/ So I could fix in 2 minutes after discovering the problem. Long live google!




10:19 am
January 31, 2008
#109110

Great explanation but I still have an issue. Just like you said if I try to edit using www when it is not used in config I get blank window. When I don’t use the www I can see the html and edit it but when I hit update it doesn’t save.

Any ideas?




JF
4:43 am
February 4, 2008
#111213

thanks you very much,




haquiticos
8:43 am
February 12, 2008
#115204

thx, you save my life!!!




4:15 am
February 16, 2008
#117192

Brilliant! I put ‘joomla edit html window blank’ into Google, and yours was the first result. Vielen Dank!




9:14 pm
February 19, 2008
#119174

THANK YOOOOOOOOOOOOOOOOUUUUUUUUUU so very very much.
I was almost about to cry out of frustration..
Googled my issue ..and BAAM..you page came up at # 1 on the top of google results….

Thank you so much Alex…I love you man : )




9:34 am
March 5, 2008
#125412

Thanks :) I have been wondering about the hit and miss nature of the HTML pop up for ages!!




dac
1:11 pm
March 7, 2008
#126529

Como todos los anteriores, muchisimas gracias, me estaba volviendo loco.

Like all comments….Thank you very much!! I was going crazy!!




Milen Zhekov
6:42 pm
March 15, 2008
#129743

Many Thanks man. You have helped me a lot.




Ivy Michel
6:43 pm
March 31, 2008
#136496

Muitíssimo Obrigada!
Thank you very, very very much!!




3:51 pm
April 9, 2008
#140836

I feel so boring but here goes: Thanks. Thanks. Thanks. You’ve spread good will with this posting and allowing Google to troll through.




Alan
7:19 am
April 23, 2008
#146469

Cheers chap. Saved me a load of time!!!




5:37 am
April 25, 2008
#147211

YIIIIIHAAAAA!!!!! I was lookin for this for month! COOOOLLLL!!!!!




Irene
1:22 am
April 29, 2008
#148714

HOLY CRAP!!!!!!!!! This is just the explanation I need! Thank you, thank you, thank you for sharing your knowledge! OMG I can’t believe it’s that simple! LOL Thank you so much - may you never get tired of helping us newbies =)




Stelio
4:44 am
April 30, 2008
#149267

Thanks a lot




3:23 am
May 1, 2008
#149676

Phew! Thank you for this explenation.

I have been stuck on this for a couple of days, trying different browser versions. Thought it was my upgrade to Firefox 3 Beta 5 that was the problem. But no, it was simply a missing www when I logged into the admin system.

My client is no longer screaming at me to make those updates!

Thanks again.




alejandro
3:26 pm
May 26, 2008
#160841

-love you man,,, Have been looking a way to solv this fuc#%&?#”¤ problem… thanks, thanks, thanks!!!!




 

Leave a Reply