Filemanager icon indicating copy to clipboard operation
Filemanager copied to clipboard

Upload Integration

Open jobokoth opened this issue 14 years ago • 4 comments

Hi people

I'm having a little trouble.... I've downloaded simogeo filemanager then in CK editor I've added the following lines

CKEDITOR.replace( 'editor1', { filebrowserImageUploadUrl : 'filemanager/connectors/php/filemanager.php' } );

When I click Upload, nothing happens! I highly suspect either I need to develop an Upload script or am I missing something? The readme talks of an add mode, but I'm not conversant with JSON... My question guys is this: Is there any other modification needed to upload a file from your local comp to the server using CK editor 3 + Simogeo filemaneger?

Please please help... Stuck with a delayed project

Job

jobokoth avatar Jul 07 '11 21:07 jobokoth

The Upload button you mention concerns the Filemanager or CKeditor?

simogeo avatar Jul 08 '11 06:07 simogeo

CK Editor

jobokoth avatar Jul 08 '11 08:07 jobokoth

Indeed, the script does not exist yet. Actually, you can write it and propose a patch, or just disable the Upload Tab to force the user to use the filemananger for upload.

Here is the way to go wuth FCKeditor : http://www.electrictoolbox.com/remove-browse-button-upload-tab-fckeditor-link-dialog/ http://www.electrictoolbox.com/remove-browse-button-upload-tab-fckeditor-image-properties-dialog/

Should be something similar with CKeditor.

Please, let us know. Thanks,

simogeo avatar Jul 08 '11 08:07 simogeo

When I look at the CK and FCK version, the CK editor posts is data to: http://ckeditor.com/apps/ckfinder/2.0.2/core/connector/php/connector.php?command=QuickUpload&type=Files&currentFolder=/Public%20Folder&CKEditor=editor1&CKEditorFuncNum=2&langCode=nl

And gets the following response:

FCKEdtior posts its data (in my case) to: Shared/include/FCKEditor2/editor/filemanager/upload/aspx/upload.aspx

And the response is:

You can make your own upload trigger and give the response needed, I guess.

Trick is to point the CK editor to the correct upload location. In the FCK config file it's just changing this: FCKConfig.LinkUploadURL = FCKConfig.BasePath + "filemanager/upload/aspx/upload.aspx";

I don't know how the change the config file of the CK editor, but it should be possible to override the default settings.

Hope this helps a little. I haven't tested it (yet)

jicho avatar Aug 18 '11 11:08 jicho