如何添加自定义文件上传按钮在CKEditor与跨域支持 [英] How to add custom file upload button in CKEditor with Cross domain support

查看:2912
本文介绍了如何添加自定义文件上传按钮在CKEditor与跨域支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的一个web应用程序中使用CKEditor。我通过设置 filebrowserImageUploadUrl 属性启用CKEditor中的FileUpload选项。

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',
 });

现在的问题是图像必须上传的位置存在于另一个服务器和我的Web应用程序

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.

所以每当我尝试使用上传按钮上传图片时,它都会成功上传,但CKEditor无法显示。当我在控制台中看到它是给出跨域策略错误。

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.

所以有一种方法允许跨域在CKEditor文件上传插件。
我也打开其他选择将图像上传到另一个服务器(如果礼物)。

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).

推荐答案

SimpleUploads 插件的功能

这篇关于如何添加自定义文件上传按钮在CKEditor与跨域支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆