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
cfasanando e7599354f6 merge 16 years ago
..
Classes merge 16 years ago
assets merge 16 years ago
img merge 16 years ago
lang merge 16 years ago
ChangeLog merge 16 years ago
README.txt merge 16 years ago
config.inc.php Feature #272 - Various improvements and unification about dealing with the system encoding, the text direction, the interface language. 16 years ago
editor.php remove php short tags (because this relies on a php.ini setting) 16 years ago
editorFrame.php merge 16 years ago
fckpackager.xml merge 16 years ago
fckplugin.js merge 16 years ago
fckplugin_compressed.js merge 16 years ago
icon.gif merge 16 years ago
icon_or.gif merge 16 years ago
images.php merge 16 years ago
index.html merge 16 years ago
manager.php remove php short tags (because this relies on a php.ini setting) 16 years ago
newFolder.html merge 16 years ago
thumbs.php merge 16 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