How to add custom file upload button in CKEditor with Cross domain support

徘徊边缘 提交于 2019-12-10 18:15:45

问题


I am using CKEditor in one of my web application. I am enabling the FileUpload option in CKEditor by setting filebrowserImageUploadUrl property.

 CKEDITOR.replace('editor1', {
    filebrowserImageUploadUrl: 'http://MyServer.com/fileupload.ashx',
 });

Now the problem is the location where image has to be uploaded is present on another server and my web application is hosted on another server.

So whenever I tried to upload the image using Upload button, It get successfully uploaded but CKEditor unable to display. When I see in console, it is giving the cross-domain policy error.

So is there a way to allow the cross-domain in CKEditor File Upload plugin. I am also open to other alternatives for uploading the image to another server (if presents).


回答1:


That's one of the features of the SimpleUploads plugin



来源:https://stackoverflow.com/questions/21086678/how-to-add-custom-file-upload-button-in-ckeditor-with-cross-domain-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!