rem: var doc = this.instance.getDoc(); var sp, le, s, e, nl, i, si, ei; var trng, sx, sy, xx = -999999999; 
add: var doc = inst.getDoc(), b = inst.getBody(); var sp, le, s, e, nl, i, si, ei, w; var trng, sx, sy, xx = -999999999, vp = inst.getViewPort(); 
context: 	getBookmark : function(simple) {		var rng = this.getRng();		var doc = this.instance.getDoc();		var sp, le, s, e, nl, i, si, ei;		var trng, sx, sy, xx = -999999999;		// Skip Opera for now		if (tinyMCE.isOpera)			return null;		sx = doc.body.scrollLeft + doc.documentElement.scrollLeft;		sy = doc.body.scrollTop + doc.documentElement.scrollTop;		if (tinyMCE.isSafari || tinyMCE.isGecko)			return {rng : rng, scrollX : sx, scrollY : sy};		if (tinyMCE.isMSIE) {			if (simple)				return {rng : rng};			if (rng.item) {				e = rng.item(0);				nl = doc.getElementsByTagName(e.nodeName);				for (i=0; i<nl.length; i++) {					if (e == nl[i]) {						sp = i;						break;					}				}				return {					tag : e.nodeName,					index : sp,					scrollX : sx,					scrollY : sy				};			} else {				trng = rng.duplicate();				trng.collapse(true);				sp = Math.abs(trng.move('character', xx));				trng = rng.duplicate();				trng.collapse(false);				le = Math.abs(trng.move('character', xx)) - sp;				return {					start : sp,					length : le,					scrollX : sx,					scrollY : sy				};			}		}		if (tinyMCE.isGecko) {			s = tinyMCE.getParentElement(rng.startContainer);			for (si=0; si<s.childNodes.length && s.childNodes[si] != rng.startContainer; si++) ;			nl = doc.getElementsByTagName(s.nodeName);			for (i=0; i<nl.length; i++) {					if (s == nl[i]) {						sp = i;						break;					}			}			e = tinyMCE.getParentElement(rng.endContainer);			for (ei=0; ei<e.childNodes.length && e.childNodes[ei] != rng.endContainer; ei++) ;			nl = doc.getElementsByTagName(e.nodeName);			for (i=0; i<nl.length; i++) {					if (e == nl[i]) {						le = i;						break;					}			}			//tinyMCE.debug(s.nodeName, sp, rng.startOffset, '-' , e.nodeName, le, rng.endOffset);			//tinyMCE.debug(sx, sy);			return {				startTag : s.nodeName,				start : sp,				startIndex : si,				endTag : e.nodeName,				end : le,				endIndex : ei,				startOffset : rng.startOffset,				endOffset : rng.endOffset,				scrollX : sx,				scrollY : sy			};		}		return null;	},
meta: 10343	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js