rem: var sLnkUrl = GetE('txtLnkUrl').value.trim() ; 
add: var sLnkUrl = GetE('txtLnkUrl').value.Trim() ; 
context: function Ok(){	if ( GetE('txtUrl').value.length == 0 )	{		window.parent.SetSelectedTab( 'Info' ) ;		GetE('txtUrl').focus() ;		alert( FCKLang.DlgImgAlertUrl ) ;		return false ;	}	var bHasImage = ( oImage != null ) ;	if ( bHasImage && bImageButton && oImage.tagName == 'IMG' )	{		if ( confirm( 'Do you want to transform the selected image on a image button?' ) )			oImage = null ;	}	else if ( bHasImage && !bImageButton && oImage.tagName == 'INPUT' )	{		if ( confirm( 'Do you want to transform the selected image button on a simple image?' ) )			oImage = null ;	}		if ( !bHasImage )	{		if ( bImageButton )		{			oImage = FCK.EditorDocument.createElement( 'INPUT' ) ;			oImage.type = 'image' ;			oImage = FCK.InsertElementAndGetIt( oImage ) ;		}		else			oImage = FCK.CreateElement( 'IMG' ) ;	}	else		oEditor.FCKUndo.SaveUndoStep() ;		UpdateImage( oImage ) ;	var sLnkUrl = GetE('txtLnkUrl').value.trim() ;	if ( sLnkUrl.length == 0 )	{		if ( oLink )			FCK.ExecuteNamedCommand( 'Unlink' ) ;	}	else	{		if ( oLink )	// Modifying an existent link.			oLink.href = sLnkUrl ;		else			// Creating a new link.		{			if ( !bHasImage )				oEditor.FCKSelection.SelectNode( oImage ) ;			oLink = oEditor.FCK.CreateLink( sLnkUrl ) ;			if ( !bHasImage )			{				oEditor.FCKSelection.SelectNode( oLink ) ;				oEditor.FCKSelection.Collapse( false ) ;			}		}		SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;		SetAttribute( oLink, 'target', GetE('cmbLnkTarget').value ) ;	}	return true ;}
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/30774da157017224af5d9a1b55d04bf21f55a840/fck_image.js/buggy/library/src/webapp/editor/FCKeditor/editor/dialog/fck_image/fck_image.js