Tag Archives: tinymce

Mystery of the empty Fragment Identifier (#), Iframes, and Chrome

Some of you may have come across WYSIWYG / RTF editors such as TinyMCE, Google’s Closure Library RTF editor, or even Yahoos YUI Editor.


All excellent choices, except if you find yourself wondering why all these are auto focusing themselves every time they load.

The common denominator is Iframes and a Fragment Identifier in your URI.  (www.soandso.com/#)

For some reason that I haven’t been able to replicate yet, in Google Chrome if you load one of these editors via AJAX while there is a Fragment Identifier (#) in your URI, when the iframe loads it will auto focus into it.

So the temporary solution is to either remove that href=’#’ stuff you have going on, or put “return false” into your javascript click events.