[geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/css/behaviors disablehandles.htc, 1.2, 1.3 showtableborders.htc, 1.4, 1.5

Blaine Lang blaine at qs1489.pair.com
Sat Feb 9 07:54:01 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/css/behaviors
In directory qs1489.pair.com:/tmp/cvs-serv26402/editor/css/behaviors

Added Files:
	disablehandles.htc showtableborders.htc 
Log Message:
Upgrade to v2.5.1 of FCKeditor

--- NEW FILE: disablehandles.htc ---
<public:component lightweight="true">

<script language="javascript">

function CancelEvent()
{
	return false ;
}

this.onresizestart = CancelEvent ;
this.onbeforeeditfocus = CancelEvent ;

</script>

</public:component>

--- NEW FILE: showtableborders.htc ---
<public:component lightweight="true">

<public:attach event="oncontentready" onevent="ShowBorders()" />
<public:attach event="onpropertychange" onevent="OnPropertyChange()" />

<script language="javascript">

var oClassRegex = /\s*FCK__ShowTableBorders/ ;

function ShowBorders()
{
	if ( this.border == 0 )
	{
		if ( !oClassRegex.test( this.className ) )
			this.className += ' FCK__ShowTableBorders' ;
	}
	else
	{
		if ( oClassRegex.test( this.className ) )
		{
			this.className = this.className.replace( oClassRegex, '' ) ;
			if ( this.className.length == 0 )
				this.removeAttribute( 'className', 0 ) ;
		}
	}
}

function OnPropertyChange()
{
	if ( event.propertyName == 'border' || event.propertyName == 'className' )
		ShowBorders.call(this) ;
}

</script>

</public:component>




More information about the geeklog-cvs mailing list