Skip to main content

TinyMCE bug - Are you sure you want to navigate away

There is a bug in TinyMCE when you add it to your web application like what happened to me while developing my community using a script called "Vanilla" that shows this message :
Are you sure you want to navigate
away from this page?

Solution : add this code to tiny_mce_src.js, and if you are using Gzip for TinyMCE delete the .gz file so it will generate a new updated file .

Code "Patch":
@@ -1571,7 +1571,7 @@

- if (tinyMCE.isRealIE && window.event.type ==
&& document.readyState != \"complete\")
+ if (tinyMCE.isRealIE && window.event &&
window.event.type ==
\"readystatechange\" && document.readyState != \"complete\")
return true;

if (tinyMCE.isLoaded)


Anonymous said…
Where exactly should I put that code? I tried doing as you said but it didn't work. I put the code at the very bottom of tiny_mce_src.js.
Wissam said…
I don't know it worked for me, by the way I don't use friendly urls or smilies .
Anonymous said…
Thanks .

Popular posts from this blog

Tria Mera - 666 - The truth

Following is a reference to the movie white noise, what you see on this page is not my opinion, and I am not interested on this stuff, if you come here than you are probably searching after watching the movie or researching tria mera term, this is for educational purposes only.

The expression, Third Day, appears in several narratives in the Bible. (Occasionally, it is “three days.”) Some biblical interpreters have thought that some of these third day motifs have significance by signifying a certain divine principle, and a few interpreters have thought that they are cryptic in meaning. Why? Interestingly, these narratives record some of the most important events in the history of Israel. And surprisingly, except for the Bible’s mention of the third day, the seventh day, and its account of creation in Genesis 1, the Bible rarely mentions the other days of the week.
The Number of the Beast is described in the Book of Revelation 13:18. From the King James translation:[5]
Here is wisdom. L…

How to Access Satellite Internet for Free

Before you start, please note that sniffing data is highly illegal, and the below is a tutorial so you understand how it works, there is no other reference in English that goes in depth except this page, therefore you need to link back in case you used this content on any medium.
I held no responsibility what so ever if you use the below in other purposes that is not educational or testing.

For a long time satellite internet is the right solution for people in remote locations, such as forests, desert, islands and more deep far locations.

Even after the huge expansion of internet to most of the inhabited remote locations there are still people who uses satellite internet for different reasons, as it cannot be disrupted by your government, it is portable, just take your dish and decoder with you to your new home as long as the satellite you subscribed in is covering your new area as well.

Now about free access to this internet, it's around you everywhere, all you need is the right …

How to Fix Ghost Touches on any Tablet / Phone - Aka Touch Glitch

A DIY on how to fix any tablet or phone touch screen, no matter if it's android or windows this fix should work, most of the times ghost touch or phantom touches are caused by over heat and grounding issues, so instead of tweaking the software which didn't work for you for ages get your tools and watch this video! it's really simple and needs no technical knowledge.