UEditor For ASP.Net Core Use Qiniu

UEditor For ASP.Net Core Use Qiniu

  • 此项目为UEditor提供文件管理;
  • 后端服务使用 ASP.Net Core;
  • 使用七牛提供的云存储;

项目地址

https://github.com/joesjiang/baidu-editor-use-qiniu-net-core网址:yii666.com<文章来源地址:https://www.yii666.com/article/756073.html

运行示例

设置 QiniuFileController.cs 中的以下部分即可直接运行。文章来源地址https://www.yii666.com/article/756073.html

  private readonly string accessKey = "xxx"; // 七牛提供的 AccessKey
private readonly string secretKey = "xxx"; // 七牛提供的 SecretKey
private readonly string bucket = "xx"; // 在七牛设置的空间名
private readonly string suffix = ""; // 在七牛设置的缩略图后缀
private readonly string domain = "http://xxx.com"; // 在七牛绑定的域名

在你自己的项目中使用步骤

1、在你的项目文件 project.json 中添加引用 DevZH.Qiniu。网址:yii666.com

"dependencies": {
"DevZH.Qiniu": "6.2.2.2",
...
}

2、将示例项目的 wwwroot\lib\ueditor 整个文件夹复制到你项目的同样位置。

3、将示例项目的 QiniuFileController.cs 复制到你项目的同样位置并修改相关的设置信息。

4、新建任意测试视图,引入UEditor相关文件,即可正常使用。文章地址https://www.yii666.com/article/756073.html

<div>
<script type="text/plain" id="content" name="content" >
UEditor
</script>
</div>
<script src="~/lib/ueditor/ueditor.config.js"></script>
<script src="~/lib/ueditor/ueditor.all.js"></script>
<script type="text/javascript">
var ue = UE.getEditor('content');
</script>
本文地址:http://www.cnblogs.com/Joes/p/ueditor-for-aspnetcore-use-qiniu.html

版权声明:本文内容来源于网络,版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。文本页已经标记具体来源原文地址,请点击原文查看来源网址,站内文章以及资源内容站长不承诺其正确性,如侵犯了您的权益,请联系站长如有侵权请联系站长,将立刻删除

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信图片_20190322181744_03.jpg

微信扫一扫打赏

请作者喝杯咖啡吧~

支付宝扫一扫领取红包,优惠每天领

二维码1

zhifubaohongbao.png

二维码2

zhifubaohongbao2.png