js/jqte/uncompressed/jquery-te-1.4.0.js
function() {
				var node,selection;
				if(window.getSelection) {
					selection = getSelection();
					node = selection.anchorNode;
				}
				if(!node && document.selection && document.selection.createRange && document.selection.type != "None")
				{
					selection = document.selection;
					var range = selection.getRangeAt ? selection.getRangeAt(0) : selection.createRange();
					node = range.commonAncestorContainer ? range.commonAncestorContainer :
						   range.parentElement ? range.parentElement() : range.item(0);
				}
				if(node) {
					return (node.nodeName == "#text" ? $(node.parentNode) : $(node));
				}
				else 
					return false;
			}
function() {
				var node,selection;
				if(window.getSelection) {
					selection = getSelection();
					node = selection.anchorNode;
				}
				if(!node && document.selection && document.selection.createRange && document.selection.type != "None")
				{
					selection = document.selection;
					var range = selection.getRangeAt ? selection.getRangeAt(0) : selection.createRange();
					node = range.commonAncestorContainer ? range.commonAncestorContainer :
						   range.parentElement ? range.parentElement() : range.item(0);
				}
				if(node) {
					return (node.nodeName == "#text" ? $(node.parentNode) : $(node));
				}
				else 
					return false;
			}
function ( ) { var node , selection ; if ( window . getSelection ) { selection = getSelection ( ) ; node = selection . anchorNode ; } if ( ! node && document . selection && document . selection . createRange && document . selection . type != "None" ) { selection = document . selection ; var range = selection . getRangeAt ? selection . getRangeAt ( 0 ) : selection . createRange ( ) ; node = range . commonAncestorContainer ? range . commonAncestorContainer : range . parentElement ? range . parentElement ( ) : range . item ( 0 ) ; } if ( node ) { return ( node . nodeName == "#text" ? $ ( node . parentNode ) : $ ( node ) ) ; } else return false ; }
the function of getting to the parent tag
the function of getting to the parent tag