A few clients of mine had asked me how to rename or delete files and directories in our CMS after uploading with FCKeditor.
There was no way to do it.
I decided to check the FCKeditor forum to see if soemone else might have solved it already. There were ways to do it using addons, but the integrated filemanager did not have a way to do it.
So, I suggested that I would give it a shot.
I had never written a context menu before, so went digging through the FCKeditor source to see what I could see.
After an hour of reading, I was still none-the-wiser, so did it from scratch.
The Demo – once it’s loaded, click the Image icon, then Browse Server. try uploading a small file, then rename it and delete it. You can also create and edit folders/directories.
I’m pretty happy with this one. The solution was very tidy, and I will be using the code again in the future.