Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload Integration #87

Open
jobokoth opened this issue Jul 7, 2011 · 4 comments
Open

Upload Integration #87

jobokoth opened this issue Jul 7, 2011 · 4 comments

Comments

@jobokoth
Copy link

jobokoth commented Jul 7, 2011

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

@simogeo
Copy link
Owner

simogeo commented Jul 8, 2011

The Upload button you mention concerns the Filemanager or CKeditor?

@jobokoth
Copy link
Author

jobokoth commented Jul 8, 2011

CK Editor

@simogeo
Copy link
Owner

simogeo commented Jul 8, 2011

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,

@jicho
Copy link
Contributor

jicho commented Aug 18, 2011

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:

<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction(2, '/userfiles/files/Public Folder/test.txt', '');</script>

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

And the response is:

<script type="text/javascript">window.parent.OnUploadCompleted(0,'/UserFiles/test.txt','test.txt','') ;</script>

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)

@simogeo simogeo self-assigned this Dec 17, 2014
@simogeo simogeo changed the title Upload Intergration Upload Integration Jun 22, 2015
@simogeo simogeo added the WIP label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants