开发者

Help setting up image upload in CK Editor, using jquery config

I have been trying to set up CKeditor with Perch CMS which requires using jQuery adapter option for initialising the CK Editor.

Below is what I have as my configuration options for CK editor and my upload folder is "resources" which is located in my root folder e.g. domain.com/resources

Although the upload tab appears under the image button/page when I try to submit an image I get a "Not Found" error.

What am I missing?

<script type="text/javascript">

$(function() {
    var config = {
        toolbar: [
            ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
            ['Image','Maximize'],
            ['Just开发者_如何转开发ifyLeft','JustifyCenter','JustifyRight','JustifyBlock']
        ],
        filebrowserUploadUrl : '/resources/'
    };

    $('textarea.ckeditor').ckeditor(config);
});

</script>


fileBrowserUploadUrl is meant to point to an upload script than handles the upload rather than the folder that the uploads will appear in.

There are some good pointers on this thread and zerokspot's blog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜