rem: if (inst.isHidden()) 
add: if (!tinyMCE.isSafari && inst.isHidden()) 
context: 	getFocusElement : function() {		var inst = this.instance;		if (tinyMCE.isMSIE && !tinyMCE.isOpera) {			var doc = inst.getDoc();			var rng = doc.selection.createRange();	//		if (rng.collapse)	//			rng.collapse(true);			var elm = rng.item ? rng.item(0) : rng.parentElement();		} else {			if (inst.isHidden())				return inst.getBody();			var sel = this.getSel();			var rng = this.getRng();			if (!sel || !rng)				return null;			var elm = rng.commonAncestorContainer;			//var elm = (sel && sel.anchorNode) ? sel.anchorNode : null;			// Handle selection a image or other control like element such as anchors			if (!rng.collapsed) {				// Is selection small				if (rng.startContainer == rng.endContainer) {					if (rng.startOffset - rng.endOffset < 2) {						if (rng.startContainer.hasChildNodes())							elm = rng.startContainer.childNodes[rng.startOffset];					}				}			}			// Get the element parent of the node			elm = tinyMCE.getParentElement(elm);			//if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "img")			//	elm = tinyMCE.selectedElement;		}		return elm;	}
meta: 2801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2801/9f52f3fb8558084d917d90a08a883d0cc260936c/TinyMCE_Selection.class.js/buggy/jscripts/tiny_mce/classes/TinyMCE_Selection.class.js