context: FCKStyleDef.prototype.ApplyToSelection = function(){	if ( FCKSelection.GetType() == 'Text' && !this.IsObjectElement )	{		var oSelection = FCK.ToolbarSet.CurrentInstance.EditorWindow.getSelection() ;				// Create the main element.		var e = FCK.ToolbarSet.CurrentInstance.EditorDocument.createElement( this.Element ) ;				for ( var i = 0 ; i < oSelection.rangeCount ; i++ )		{			e.appendChild( oSelection.getRangeAt(i).extractContents() ) ;		}				// Set the attributes.		this._AddAttributes( e ) ;				// Remove the duplicated elements.		this._RemoveDuplicates( e ) ;		var oRange = oSelection.getRangeAt(0) ;				oRange.insertNode( e ) ;	}	else	{		var oControl = FCK.ToolbarSet.CurrentInstance.Selection.GetSelectedElement() ;		if ( oControl.tagName == this.Element )			this._AddAttributes( oControl ) ;	}}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/c3e806dd2e80d30e5028083f65e626da8d5acba4/fckstyledef_gecko.js/buggy/reference/library/src/webapp/editor/FCKeditor/editor/_source/classes/fckstyledef_gecko.js