ckeditor – how to make simple uploader work

edit the html page where you call the ckeditor instance.

CKEDITOR.replace('editor',
{
filebrowserUploadUrl:'/path/to/upload/script.php';
});

the line above will display the upload from whenever user click on the image icon.
the upload script should return

<script type="text/javascript">
window.parent.CKEDITOR.tools.callFunction(1, '<url of uploaded file>', '');</script>


ckeditor external file uploader

ckeditor image uploader problem

Advertisements

Published by

paragasu

Different. In a good way

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s