context: FCKStyleDef.prototype.ApplyToSelection = function(){	var oSelection = FCK.ToolbarSet.CurrentInstance.EditorDocument.selection ;		if ( oSelection.type == 'Text' )	{		var oRange = oSelection.createRange() ;				// Create the main element.		var e = document.createElement( this.Element ) ;		e.innerHTML = oRange.htmlText ;				// Set the attributes.		this._AddAttributes( e ) ;				// Remove the duplicated elements.		this._RemoveDuplicates( e ) ;				// Replace the selection with the resulting HTML.		oRange.pasteHTML( e.outerHTML ) ;	}	else if ( oSelection.type == 'Control' )	{		var oControl = FCK.ToolbarSet.CurrentInstance.Selection.GetSelectedElement() ;		if ( oControl.tagName == this.Element )			this._AddAttributes( oControl ) ;	}}
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/9e983f26dc3628701a539d2377aaa3db1e8f1f71/fckstyledef_ie.js/clean/library/src/webapp/editor/FCKeditor/editor/_source/classes/fckstyledef_ie.js