Yii2 ueditor-Baidu Editor Photo upload seven Qiniu

Source: Internet
Author: User

1, the editor is using the underwear brother's small parts, not installed using composer installation

PHP Composer.phar require kucha/ueditor "*"

Attached to GitHub's address: Https://github.com/BigKuCha/yii2-ueditor-widget

2. Install the seven Ox official SDK

PHP Composer.phar require QINIU/PHP-SDK

Attached to GitHub's address: HTTPS://GITHUB.COM/QINIU/PHP-SDK

Underwear Baidu Editor's use does not introduce, you can go to GitHub to see a detailed introduction

3, Modify the vendor\kucha\ueditor\uploader.php Upfile () method (the main processing method of uploading files) to find the drawing code comments out

Replace with seven the code of the image uploaded by the ox -drawings

Remember to use Auth and UploadManager

4, revise the Handleaction method of Vendor\kucha\ueditor\ueditoraction , comment out the drawings code

This modification has been completed, please indicate if there are any errors

Is

Yii2 ueditor-Baidu Editor Photo upload seven Qiniu

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.