UEditor For ASP. Net Core Use Qiniu, ueditorqiniu
UEditor For ASP. Net Core Use Qiniu
- This project provides UEditor with file management;
- The backend service uses ASP. Net Core;
- Use cloud storage provided by qiniu;
Project address
Http://git.oschina.net/joesjiang/BaiduEditorUseQiniu.NetCore
Running example
Set QiniuFileController. cs to run directly.
Private readonly string accessKey = "xxx"; // AccessKey private readonly string secretKey = "xxx" provided by qiniu "; // SecretKey private readonly string bucket = "xx" provided by qiniu; // The space name set in qiniu is private readonly string suffix = ""; // set the thumbnail suffix private readonly string domain = "http://xxx.com" in qiniu; // bind the domain name in qiniu
Use steps in your project
1. Add the reference DevZH. Qiniu to the project. json file of your project.
"dependencies": { "DevZH.Qiniu": "6.2.2.2", ... }
2. Copy the entire wwwroot \ lib \ ueditor folder of the sample project to the same position of your project.
3. Copy the QiniuFileController. cs of the sample project to the same location of your project and modify relevant settings.
4. create any test view and introduce UEditor files.
<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>