UEditor For ASP. Net Core Use Qiniu, ueditorqiniu

Source: Internet
Author: User

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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.