add:  oEditor.FCKSelection.SelectNode(oLink);  
context: function Ok(){	var sUri ;	switch ( GetE('cmbLinkType').value )	{		case 'url' :			sUri = GetE('txtUrl').value ;			if ( sUri.length == 0 )			{				alert( FCKLang.DlnLnkMsgNoUrl ) ;				return false ;			}			sUri = GetE('cmbLinkProtocol').value + sUri ;			if( GetE('cmbTarget').value == 'popup' )				sUri = BuildPopupUri( sUri ) ;			break ;		case 'email' :			sUri = GetE('txtEMailAddress').value ;			if ( sUri.length == 0 )			{				alert( FCKLang.DlnLnkMsgNoEMail ) ;				return false ;			}			sUri = oParser.CreateEMailUri(				sUri,				GetE('txtEMailSubject').value,				GetE('txtEMailBody').value ) ;			break ;		case 'anchor' :			var sAnchor = GetE('cmbAnchorName').value ;			if ( sAnchor.length == 0 ) sAnchor = GetE('cmbAnchorId').value ;			if ( sAnchor.length == 0 )			{				alert( FCKLang.DlnLnkMsgNoAnchor ) ;				return false ;			}			sUri = '#' + sAnchor ;			break ;	}	if ( oLink )	// Modifying an existent link.	{		oEditor.FCKUndo.SaveUndoStep() ;		oLink.href = sUri ;	}	else			// Creating a new link.	{		oLink = oEditor.FCK.CreateLink( sUri ) ;		if ( ! oLink )			return true ;	}		SetAttribute( oLink, '_fcksavedurl', sUri ) ;	// Target	if( GetE('cmbTarget').value != 'popup' )		SetAttribute( oLink, 'target', GetE('txtTargetFrame').value ) ;	else		SetAttribute( oLink, 'target', null ) ;	// Advances Attributes	SetAttribute( oLink, 'id'		, GetE('txtAttId').value ) ;	SetAttribute( oLink, 'name'		, GetE('txtAttName').value ) ;		// No IE. Set but doesnt't update the outerHTML.	SetAttribute( oLink, 'dir'		, GetE('cmbAttLangDir').value ) ;	SetAttribute( oLink, 'lang'		, GetE('txtAttLangCode').value ) ;	SetAttribute( oLink, 'accesskey', GetE('txtAttAccessKey').value ) ;	SetAttribute( oLink, 'tabindex'	, ( GetE('txtAttTabIndex').value > 0 ? GetE('txtAttTabIndex').value : null ) ) ;	SetAttribute( oLink, 'title'	, GetE('txtAttTitle').value ) ;	SetAttribute( oLink, 'type'		, GetE('txtAttContentType').value ) ;	SetAttribute( oLink, 'charset'	, GetE('txtAttCharSet').value ) ;	if ( oEditor.FCKBrowserInfo.IsIE )	{		SetAttribute( oLink, 'className', GetE('txtAttClasses').value ) ;		oLink.style.cssText = GetE('txtAttStyle').value ;	}	else	{		SetAttribute( oLink, 'class', GetE('txtAttClasses').value ) ;		SetAttribute( oLink, 'style', GetE('txtAttStyle').value ) ;	}	return true ;}
meta: 4958	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4958/6b9d6c2501f7b42b27415777c9ca21fcad5d776a/fck_link.js/clean/ext_scripts/FCKeditor/editor/dialog/fck_link/fck_link.js