Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 526 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 526 Bytes

think-ueditor

think-ueditor Server-side configuration for ThinkJS3.

Installation

Using npm:

npm install think-ueditor

In thinkjs3:

const ThinkUeditor = require('think-ueditor');
const Base = require('./base.js');

module.exports = class extends Base {
  uploadAction() {
    const ueditor = new ThinkUeditor(this.ctx);
    this.json(ueditor.init());
  }
}

Modify your ueditor.config.js file

window.UEDITOR_CONFIG = {

  ...

  , serverUrl: URL + "../../../ueditor/upload"
  ...