Hi all,
Most things going, java connector etc but cant find a way or any info on how to delete a file / image through the editor after it has been uploaded by the editor. Am i stupid and missing somthing, or do i have to write some code. What do you folks do?
Mark
Most things going, java connector etc but cant find a way or any info on how to delete a file / image through the editor after it has been uploaded by the editor. Am i stupid and missing somthing, or do i have to write some code. What do you folks do?
Mark
RE: deleting uploaded files
You're not stupid nor missing something... or we both are :p
Removing files is not possible through the FCKeditor. I never saw the possibility anywhere and I just checked the screenshots of the filemanager: http://mcpuk.net/fbxp/?page=screenshots. No remove button on them neither. So I guess someone will have to write it. A context menu within the filebrowser would be nice (http://www.djwice.com/contextmenu.html and others via google probably)
RE: deleting uploaded files
I'll do it for PHP. I've been looking for something simpler than the Konqueror port to tackle
Kae
RE: deleting uploaded files
It can be usefull sure, but :
Be carefull as your users will probably delete picture already linked in their posts, and perhaps this will create deadlink ....
But it is nice to have the possibility to turn on this future option....
RE: deleting uploaded files
Best to warn them, then
here's a start - haven't tied in the Rename and Delete functions yet, but the contextmenu code is written for Firefox (will do IE later).
http://verens.com/demos/FCKeditor/_samples/default.html
RE: deleting uploaded files
Mark
RE: deleting uploaded files
My custom browser, available https://sourceforge.net/projects/lfobrowser has the ability to write and open files directly off the server that FCKeditor is running on. Adding a feature to delete would be trivial. I don't see a comprehensive solution for security in the editor itself so I decided not to add it when I first wrote the browser. I'm not talking about security from a "hacker" perspective as much as I am clients who delete things accidentally.
I can get it added in the next couple of days if you want but security would be up to you. Abd my browser only works with PHP on the backend.
RE: deleting uploaded files
Mark
RE: deleting uploaded files
RE: deleting uploaded files
okay - I have a working rename and delete contextmenu for Firefox and PHP. I will get it working in IE tomorrow morning (only Linux machines here!), and for non-PHP servers, just read the changes I made, and paraphrase them in your own connectors.
the example is here:
http://verens.com/demos/FCKeditor/_samples/default.html
and the zipped filemanager/browser/default directory is here:
http://verens.com/demos/FCKeditor/edito ... 060222.bz2
well! that was certainly easier than porting to Konqueror!
Kae
RE: deleting uploaded files
That's great!!
One suggestion, maybe.
When changing the filename, it seems more logic to me that the original filename is by default provided in the dialog window.
In any case, great work!
Thanks!
RE: deleting uploaded files
good point Didgiman. Done.
now works in IE7 as well.
example:
http://verens.com/demos/FCKeditor/_samples/default.html
zipped directory:
http://verens.com/demos/FCKeditor/edito ... 060222.bz2
the important files are:
default/frmresourceslist.html
default/connectors/php/connector.php
default/connectors/php/commands.php
ignore all other files.
How do I get this integrated with the CVS version?
Kae
RE: deleting uploaded files
I'll try to have a ColdFusion version of this available as soon as possible.
RE: deleting uploaded files
Kae, This is great.
Did you perhaps mean:
http://verens.com/demos/FCKeditor/edito ... 060223.bz2
Appears to work fine in IE6.
Maybe this could be added to frmfolders.html as well to allow folder deleting from the left pane.
Anyway, thanks and keep up the good work and post any updates.
RE: deleting uploaded files
Cheers
Mark
RE: deleting uploaded files
Mark
RE: deleting uploaded files
Kae
RE: deleting uploaded files
jp
RE: deleting uploaded files
yes, it is available. The latest blog entry and demo on it is here:
http://verens.com/archives/2006/05/26/f ... -captions/
the zip is here:
http://verens.com/demos/FCKeditor/editor.tbz2
(note: you should probably unzip this into a tmp directory in case it overwrites some important files of yours).
I am no longer supporting the hack, though. I started a plugin with a new file manager which I intend to enhance well beyond that.
Blog entry and demo:
http://verens.com/archives/2006/05/29/a ... e-tagging/
plugin zip:
http://verens.com/demos/fckeditor/2.3b/ ... 60529.tbz2
have fun!
Kae
RE: deleting uploaded files
Hi Kae
I love your work, great job!
It is some interesting ideas you've got, and Im looking forward to see it. Havent got time atm. to help though
May I ask, will you be releasing new versions along with new versions of the editor or just as time goes by ?
Any choice are great
Cheers mate!
RE: deleting uploaded files
i won't be putting any further work into hacking the official file manager, but I'm working on a plugin file manager which will do everything the current one does, plus more (built-in search, mini plain-text editor, javascript compressor, api hooks for developers, ...).
I have a week off work starting next wednesday, so will be putting some time into this. hopefully have a working 1.0 release by the week after. I'll announce it here.
Kae
Re: deleting uploaded files
Regards,
Peter
Re: deleting uploaded files
The links does not work anymore...
Thanks!
Re: deleting uploaded files