Filemanager for FCKeditor with image editing capabilitys - Updated! FCKeditor 2.2

So finally I have done the mod witch a lot of people keeps mailing me for :), sorry for being so late with this. I have had a lot to do at work lately so I have not had time before now.

This mod makes it possible to use PHP sessions and cookies to config the editor. I use this for ensuring that my customers may have their own templates and styles (styles.xml and templates.xml). Also it makes it possible to edit images that are uploaded to the file browser.

Anyway, It's done. Download it here.

Wanna test it before downloading(Not correct FCKeditorversion but same imageedit)? Test it here

Requirements:

Things to do:

Links:
FCKeditor's offical website
Grant French's website for the File Browser eXtention Project
HTMLArea+ImageManager+ImageEditor's webpage
Everaldo is the greatest iconmaker ever!, I use his icons in my app too!

My email

If you have any questions please contact me: martin.kronstad at gmail.com

BR Martin Kronstad

What's done:


INSTALL ImageManager first!
1. unzip imagemanager to your chosen location.
2. unzip FCKeditor2FC1 to your chosen location. (Or do the changes described under).
3. Fix paths in:
- /imagemanager/ImageManager/config.inc.php (Line: 18 and Line: 28)
- /FCKeditor2FC1/fckconfig.php (or fckconfig.js) (Line: 113 and Line: 123)(This should be fine by default in my pack)
- /FCKeditor2FC1/editor/filemanager/browser/mcpuk/frmresourceslist.html (Line: 130)
- /FCKeditor2FC1/editor/filemanager/browser/mcpuk/connectors/php/config.php (Line: 32)
4. Ensure GD2 is installed, or change to ImageMagick in /imagemanager/ImageManager/config.inc.php.(Line: 49)

================================================
Change fckconfig.js to fckconfig.php
================================================
1. Edit editor/_source/internals/fck_onload.js.
Line : 117
Change fckconfig.js to fckconfig.php
This enables us to use phpfunctions and session/cookie variables in the config of the editor.
2. Change filename /fckconfig.js to /fckconfig.php (NOT the one in the source dir!!)

================================================
Add imageediting capabilitys to to filebrowser
================================================
I want to have thumbnails to I use the mcpuk
filebrowser as a base for my mod.

1. Replace (Line:129 in /editor/filemanager/browser/mcpuk/frmresourceslist.html):
if (imageEditable==1) {
oCell.innerHTML += eImageLink + '<img border="0" src="images/editImage.gif" width="16" height="16" alt="Edit Image" title="Edit Image"></a>' ;
}

With:
if(oConnector.ResourceType=="Image") {
oCell.innerHTML = oCell.innerHTML + '<a href="#" onclick="javascript:window.open(\'/imagemanager/ImageManager/editor.php?img=' + oConnector.CurrentFolder + fileName + '&Katalog=' + GetUrlParam( 'Katalog' ) + '\',\'win\',\'status=0,toolbar=0\');"><img alt="Rediger" border="0" src="images/editImage.gif" /></a><br />&nbsp;' ;
}

IMPORTANT!:: This assumes that you have installed the ImageManager in /imagemanager/ImageManager, if your path
is different change it in accordance to your path.

2. Config ImageManager.
Edit the basepath : $IMConfig['base_dir'] = 'F:/Jobber/FCKeditor2FC1/UserFiles/Image'; (LINE: 18 in /imagemanager/ImageManager/config.inc.php)
Edit the baseurl : $IMConfig['base_url'] = 'http://' . $_SERVER['SERVER_NAME'] . '/FCKeditor2FC1/UserFiles/Image'; (LINE: 28 in /imagemanager/ImageManager/config.inc.php)