From: Raphael D. P. <rap...@us...> - 2005-09-01 18:15:58
|
Update of /cvsroot/thyapi/thyapi/thywidgets/external/fckeditor/editor/css/behaviors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32492/thywidgets/external/fckeditor/editor/css/behaviors Added Files: anchor.gif anchors.htc hiddenfield.gif hiddenfield.htc moz-bindings.xml showtableborders.htc Log Message: Synching... --- NEW FILE: anchors.htc --- <public:component lightweight="true"> <public:attach event="oncontentready" onevent="ShowIcon()" /> <public:attach event="ondoubleclick" onevent="EditAnchor()" /> <script language="javascript"> var bIsAnchor = this.name.length > 0 && this.getAttribute('href').length == 0 ; function ShowIcon() { if ( bIsAnchor ) { this.runtimeStyle.height = '1px' ; this.runtimeStyle.paddingLeft = '16px' ; this.runtimeStyle.backgroundImage = 'url(' + window.parent.FCKConfig.FullBasePath + 'css/behaviors/anchor.gif)' ; this.runtimeStyle.backgroundRepeat = 'no-repeat' ; this.runtimeStyle.cursor = 'hand' ; } } function EditAnchor() { if ( bIsAnchor ) alert( this.outerHTML ) ; } </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\s*/ ; var FCKConfig = window.parent.FCKConfig ; function ShowBorders() { if ( this.border == 0 && FCKConfig.ShowBorders ) { 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 ( FCKConfig.ShowBorders && ( event.propertyName == 'border' || event.propertyName == 'className' ) ) ShowBorders() ; } </script> </public:component> --- NEW FILE: moz-bindings.xml --- <?xml version="1.0" encoding="utf-8" ?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="showtableborders"> <implementation> <constructor> this.CheckShowBorders() ; </constructor> <method name="CheckShowBorders"> <body> var oClassRegex = /\s*FCK__ShowTableBorders\s*/ ; 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, '' ) ; } </body> </method> </implementation> <handlers> <handler event="DOMAttrModified"> this.CheckShowBorders() ; </handler> </handlers> </binding> <binding id="anchors"> <implementation> <constructor> <![CDATA[ this.IsAnchor = ( this.name != null && this.name.length > 0 && ( this.getAttribute('href') == null || this.getAttribute('href').length == 0 ) ) ; this.ShowIcon() ; ]]> </constructor> <method name="ShowIcon"> <body> if ( this.IsAnchor ) { this.style.height = '1px' ; this.style.paddingLeft = '16px' ; this.style.backgroundImage = 'url(behaviors/anchor.gif)' ; this.style.backgroundRepeat = 'no-repeat' ; this.style.cursor = 'pointer' ; } </body> </method> </implementation> <handlers> <handler event="click"> if ( this.IsAnchor ) alert( this.IsAnchor ) ; </handler> </handlers> </binding> </bindings> --- NEW FILE: hiddenfield.htc --- <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> --- NEW FILE: anchor.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: hiddenfield.gif --- (This appears to be a binary file; contents omitted.) |