Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/q1998763/think-ueditor

think-ueditor thinkjs3 ueditor nodejs
https://github.com/q1998763/think-ueditor

thinkjs3 ueditor

Last synced: 3 months ago
JSON representation

think-ueditor thinkjs3 ueditor nodejs

Awesome Lists containing this project

README

        

# think-ueditor

`think-ueditor` Server-side configuration for ThinkJS3.

## Installation

Using npm:

```sh
npm install think-ueditor
```

In thinkjs3:

```js
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
```js
window.UEDITOR_CONFIG = {

...

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

```