REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 3.22 KB
Close
/home/jambtst2015/www/ckeditor/plugins/easyUpload/fckplugin.js
Text
Base64
/* * * File Name: fckplugin.js * Plugin to provide easy dialogs to upload images and files * * File Authors: * Alfonso Martínez de Lizarrondo * * Developed for Graham Glass * * Version: 0.3 */ //Image Dialog // Register the related command. FCKCommands.RegisterCommand( 'easyImage', new FCKDialogCommand( 'easyImage', FCKLang.EuImgDialogTitle, FCKPlugins.Items['easyUpload'].Path + 'fck_image.html', 450, 350 ) ) ; // Create the toolbar button. var oEasyImageItem = new FCKToolbarButton( 'easyImage', FCKLang.EuInsertImageLbl, FCKLang.EuInsertImage, null, false, true, 37) ; FCKToolbarItems.RegisterItem( 'easyImage', oEasyImageItem ) ; //File Dialog // Register the related command. FCKCommands.RegisterCommand( 'easyFile', new FCKDialogCommand( 'easyImage', FCKLang.EuFileDialogTitle, FCKPlugins.Items['easyUpload'].Path + 'fck_file.html', 340, 250 ) ) ; // Create the toolbar button. var oEasyFileItem = new FCKToolbarButton( 'easyFile', FCKLang.EuFileInsertFileLbl, FCKLang.EuFileInsertFile, null, false, true) ; oEasyFileItem.IconPath = FCKPlugins.Items['easyUpload'].Path + 'file.gif' ; FCKToolbarItems.RegisterItem( 'easyFile', oEasyFileItem ) ; //External Link Dialog // Register the related command. FCKCommands.RegisterCommand( 'easyLink', new FCKDialogCommand( 'easyImage', FCKLang.EuLinkDialogTitle, FCKPlugins.Items['easyUpload'].Path + 'fck_link.html', 340, 180 ) ) ; // Create the toolbar button. var oEasyLinkItem = new FCKToolbarButton( 'easyLink', FCKLang.EuInsertLinkLbl, FCKLang.EuInsertLink, null, false, true, 34) ; FCKToolbarItems.RegisterItem( 'easyLink', oEasyLinkItem ) ; // Context menu for Image and Link // Define the context menu "listener". var oMyContextMenuListener = { // We will use our own menus only if the default ones have been removed from the config, so if someone uses just the // image dialog then we don' mess with the links (for example) EnableImageMenu : (FCKConfig.ContextMenu.IndexOf('Image') == -1) , EnableLinkMenu : (FCKConfig.ContextMenu.IndexOf('Link') == -1) , // This is the standard function called right before sowing the context menu. AddItems : function( menu, tag, tagName ) { if ( this.EnableImageMenu && tagName == 'IMG' && !tag.getAttribute( '_fckfakelement' ) ) { menu.AddSeparator() ; menu.AddItem( 'easyImage', FCKLang.EuMenuImageProperties, 37 ) ; } if ( this.EnableLinkMenu && FCK.GetNamedCommandState( 'Unlink' ) != FCK_TRISTATE_DISABLED ) { menu.AddSeparator() ; menu.AddItem( 'easyLink' , FCKLang.EuMenuEditLink , 34 ) ; menu.AddItem( 'Unlink' , FCKLang.EuMenuRemoveLink , 35 ) ; //calls the default one } } } // Register our context menu listener. FCK.ContextMenu.RegisterListener( oMyContextMenuListener ) ; // Returns an array with the available classes defined in the Styles GetAvailableClasses = function( nodeName ) { var styles = FCK.Styles.GetStyles() ; var aClasses = [{name:'', classname:''}]; for ( var styleName in styles ) { var style = styles[styleName] ; if (style.IsCore) continue; if (style.Element == nodeName) { if (style._StyleDesc.Attributes && style._StyleDesc.Attributes['class'] ) aClasses.push( {name:styleName, classname:style._StyleDesc.Attributes['class']} ) ; } } return aClasses ; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
docs
DIR
-
drwxr-xr-x
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fck_image
DIR
-
drwxr-xr-x
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lang
DIR
-
drwxr-xr-x
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fckplugin.js
3.22 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fck_file.html
1.48 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fck_file.js
4.93 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fck_image.html
6.25 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fck_link.html
658 B
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fck_link.js
2.96 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
file.gif
124 B
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.html
345 B
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Thumbs.db
5.50 KB
lrw-r--r--
2024-11-22 17:53:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).