PHP 8.1.33
Preview: showtableborders.htc Size: 822 B
/home/jambtst2015/public_html/fckeditor/editor/css/behaviors/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>

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
236 B lrw-r--r-- 2024-11-22 17:53:05
Edit Download
822 B lrw-r--r-- 2024-11-22 17:53:05
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).