Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/fckeditor/editor/plugins/ImageManager
Ivan Tcholakov 46e525646b [svn r22497] FS#2867 - The online editor: Assigning styles to all dialogs for unification their appearance in different browsers. 17 years ago
..
Classes [svn r22369] FS#2867 - The online editor, the Image manager: Visual fixes for the in-dialog mode. 17 years ago
assets [svn r22389] FS#2867 - The online editor, the simple file manager, the Image manager: Implementing a dialog for ceation of new folders. 17 years ago
img [svn r17430] FS#2867 - FCKEditor, Image Manager: Minor visual fixes. 17 years ago
lang [svn r18347] FS#2867: FCKEditor, Image Manager: Fixing some bugs. 17 years ago
ChangeLog [svn r15985] FCKeditor languages and plugins added see FS#2528 18 years ago
README.txt [svn r9834] desactivate upgrade button (not yet tested) 19 years ago
config.inc.php [svn r21793] FS#2867 - The FCKEditor: Simplifying the name of the repository initialization script. 17 years ago
editor.php [svn r22497] FS#2867 - The online editor: Assigning styles to all dialogs for unification their appearance in different browsers. 17 years ago
editorFrame.php [svn r21105] Fixed vulnerable get parameter: action - partial FS#4261 17 years ago
fckplugin.js [svn r22391] FS#2867 - The online editorr: Fixing some language translations and javascript errors (IE). 17 years ago
icon.gif [svn r17255] FS#2867 - FCKEditor: Cosmetics, fixing some toolbar icons. 17 years ago
icon_or.gif [svn r15985] FCKeditor languages and plugins added see FS#2528 18 years ago
images.php [svn r22391] FS#2867 - The online editorr: Fixing some language translations and javascript errors (IE). 17 years ago
index.html [svn r17147] FS#2867 - Empty index.html files everywhere within the directory structure of FCKEditor. 17 years ago
manager.php [svn r22497] FS#2867 - The online editor: Assigning styles to all dialogs for unification their appearance in different browsers. 17 years ago
newFolder.html [svn r20427] styles button in fck editor see FS#3901 17 years ago
thumbs.php [svn r15985] FCKeditor languages and plugins added see FS#2528 18 years ago

README.txt

Below are the steps required to setup the Wei Zhuo's Image Manager (http://www.zhuo.org/htmlarea/)

as a plugin for FCKeditor.

-----------------------------
SETTING UP THE IMAGE MANAGER:
-----------------------------

- Firstly extract the archive to the editor/plugins directory
- Edit the file 'editor/plugins/ImageManager/config.inc.php' to configure the plugin.

---------------------------
INSTALLING AS A FCK PLUGIN:
---------------------------

The required fckplugin.js file is already in the archive, so all you need to do is update fckconfig.js (in the root directory) and make the following updates:

- The language for the plugin and to directEdit option must be set in its 'editor/plugins/ImageManager/fckplugin.js' file.
- Add the plugin to your FCKeditor by opening you 'fckconfig.js' file and update the 'FCKConfig.ToolbarSets' you're using by replacing 'Image' with 'ImageManager';
Register the plugin with the following statement: "FCKConfig.Plugins.Add('ImageManager');"
- Done. (Should the toolbar icon not appear, try to clear your browser's cache)


--------------------------------------------------------------
UPDATING THE CONTEXT MENU FOR IMAGES TO USE THE IMAGE MANAGER:
--------------------------------------------------------------

Copy an icon for the image manager for the popup context menu
cp /editor/skins/default/toolbar/image.gif /editor/skins/default/toolbar/imagemanager.gif

edit editor/_source/internals/fckcontextmenu.js
- search for 'FCKLang.ImageProperties'
- replace the string in the parameter before the above mentioned one from 'Image' to 'ImageManager'.
the line should now read: return new FCKContextMenuGroup( true, this, 'ImageManager', FCKLang.ImageProperties, true ) ;

This updates the _source context menu to use the image manager. However to avoid having to recompile the whole thing, also need to update the compiled versions too so also repeat the above on the following files:

- editor/js/fckeditorcode_gecko_2.js
- editor/js/fckeditorcode_ie_2.js


Enjoy!
Brent Kelly
Zeald.com
http://www.zeald.com

Paul Moers
http://www.saulmade.nl