first commit
This commit is contained in:
15
stud/FCKeditor/editor/css/behaviors/disablehandles.htc
Normal file
15
stud/FCKeditor/editor/css/behaviors/disablehandles.htc
Normal file
@ -0,0 +1,15 @@
|
||||
<public:component lightweight="true">
|
||||
|
||||
<script language="javascript">
|
||||
|
||||
function CancelEvent()
|
||||
{
|
||||
return false ;
|
||||
}
|
||||
|
||||
this.onresizestart = CancelEvent ;
|
||||
this.onbeforeeditfocus = CancelEvent ;
|
||||
|
||||
</script>
|
||||
|
||||
</public:component>
|
BIN
stud/FCKeditor/editor/css/behaviors/hiddenfield.gif
Normal file
BIN
stud/FCKeditor/editor/css/behaviors/hiddenfield.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 B |
30
stud/FCKeditor/editor/css/behaviors/hiddenfield.htc
Normal file
30
stud/FCKeditor/editor/css/behaviors/hiddenfield.htc
Normal file
@ -0,0 +1,30 @@
|
||||
<public:component lightweight="true">
|
||||
|
||||
<public:attach event="oncontentready" onevent="ShowField()" />
|
||||
<public:attach event="ondoubleclick" onevent="EditField()" />
|
||||
|
||||
<script language="javascript">
|
||||
|
||||
var bIsHiddenField = this.type == 'hidden' ;
|
||||
|
||||
function ShowField()
|
||||
{
|
||||
if ( bIsHiddenField )
|
||||
{
|
||||
this.runtimeStyle.width = '20px' ;
|
||||
this.runtimeStyle.height = '20px' ;
|
||||
this.runtimeStyle.border = '1px dotted #FF0000' ;
|
||||
this.runtimeStyle.backgroundImage = 'url(css/behaviors/hiddenfield.gif)' ;
|
||||
this.runtimeStyle.fontSize = '99px' ;
|
||||
}
|
||||
}
|
||||
|
||||
function EditField()
|
||||
{
|
||||
if ( bIsHiddenField )
|
||||
alert( this.outerHTML ) ;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</public:component>
|
36
stud/FCKeditor/editor/css/behaviors/showtableborders.htc
Normal file
36
stud/FCKeditor/editor/css/behaviors/showtableborders.htc
Normal file
@ -0,0 +1,36 @@
|
||||
<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>
|
Reference in New Issue
Block a user