Project

General

Profile

« Previous | Next » 

Revision 1199

Added by Dietmar over 14 years ago

Update FCKeditor Version 2.6.5 to Modulversion 2.9.3

View differences:

fck_image.js
191 191

  
192 192
		GetE('txtLnkUrl').value		= sLinkUrl ;
193 193
		GetE('cmbLnkTarget').value	= oLink.target ;
194
		GetE('cmbAttContentRel').value	= oLink.rel ;
195
		GetE('txtAttTitle').value		= oLink.title ;
196
		GetE('txtAttId').value			= oLink.id ;
197
	var sClass ;
198
	if ( oEditor.FCKBrowserInfo.IsIE )
199
	{
200
		sClass	= oLink.getAttribute('className',2) || '' ;
201
		// Clean up temporary classes for internal use:
202
		sClass = sClass.replace( FCKRegexLib.FCK_Class, '' ) ;
203

  
204
		GetE('txtAttStyle').value	= oLink.style.cssText ;
194 205
	}
206
	else
207
	{
208
		sClass	= oLink.getAttribute('class',2) || '' ;
209
		GetE('txtAttStyle').value	= oLink.getAttribute('style',2) || '' ;
210
	}
211
	GetE('txtAttClasses').value	= sClass ;
195 212

  
213
		}
214

  
196 215
	UpdatePreview() ;
197 216
}
198 217

  
......
263 282
		}
264 283

  
265 284
		SetAttribute( oLink, '_fcksavedurl', sLnkUrl ) ;
266
		SetAttribute( oLink, 'target', GetE('cmbLnkTarget').value ) ;
285
		SetAttribute( oLink, 'target', 	GetE('cmbLnkTarget').value ) ;
286
		SetAttribute( oLink, 'rel', 	GetE('cmbAttContentRel').value ) ;
287
		SetAttribute( oLink, 'id', 		GetE('txtAttId').value ) ;
288
		SetAttribute( oLink, 'title', 	GetE('txtAttTitle').value ) ;
289

  
290
		if ( oEditor.FCKBrowserInfo.IsIE )
291
		{
292
			var sClass = GetE('txtAttClasses').value ;
293
			// If it's also an anchor add an internal class
294
			if ( GetE('txtAttName').value.length != 0 )
295
				sClass += ' FCK__AnchorC' ;
296
			SetAttribute( oLink, 'className', sClass ) ;
297

  
298
			oLink.style.cssText = GetE('txtAttStyle').value ;
299
		}
300
		else
301
		{
302
			SetAttribute( oLink, 'class', GetE('txtAttClasses').value ) ;
303
			SetAttribute( oLink, 'style', GetE('txtAttStyle').value ) ;
304
		}
305
		
267 306
	}
268 307

  
269 308
	return true ;

Also available in: Unified diff