1.0.0 • Published 7 years ago

think-ueditor v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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"
  ...