I think I'm confused. I've been trying to figure this out for literally weeks. I need to know a couple of basic questions. I have CKEditor installed and working with CKFinder as a stand-alone web page. I'm seeing files in CKFinder and can upload files no problem.
The comment in the plugin code for fileeditor says that fileeditor is for this purpose: "prodives command that saves edited file." In English, this tells me that fileeditor is for saving the contents of the HTML in the editor to the server.
1. Am I correct about my assumption that fileeditor saves editor content to the server? I would like to load and save whole HTML files to the server. Is this possible? The code in the plugin certainly has the fwrite() functions to do so, but it seems it's not enabled or working.
2. Is the fileeditor plugin enabled by default? From what I can tell, it is enabled, but I don't understand if it is working. If #1 above is correct, how do I enable this to save files to the server?
3. fileeditor plugin shows lots of references to codemirror sourcecode highlighting. I've seen this in the docs that this feature is implemented, but I am unable to understand how to enable codemirror as part of fileeditor. This indicates further that something is not working.
Please help clarify. I think I am going insane.
Thanks!
Joel
Sat, 01/08/2011 - 06:23
#1
Re: Fileeditor Plugin??
Re: Fileeditor Plugin??
You can test it in the demo: http://ckfinder.com/demo upload a txt file and then you can edit it with the context menu entry.
Re: Fileeditor Plugin??
I found that I am able to right-click and "edit" the file within CKFinder as you described. This is a simple file editor and is nice, but not exactly what I really want.
I want to open those files within CKEditor to edit in WYSIWYG or Source mode, then save that file back to the directory. Is there any way to "enable" this functionality, or does this require custom coding to make work?
Ideally I could:
1. Visit page with CKEditor and CKFinder installed
2. Click open button to choose file in CKFinder to edit, or upload a new file.
3. File contents are put into the CKEditor textarea for editing.
4. Make changes. (Source view should show code in codemirror's colored syntax highlighting).
5. Click save button and choose to save over existing file or with new name.
Is this possible given the current CKEditor/CKFinder software? I've been looking for days but cannot find if this functionality exists for CKEditor/CKFinder. Any help appreciated.
Thanks,
Joel.