Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/q1998763/think-ueditor
- Owner: q1998763
- License: mit
- Created: 2017-07-19T07:23:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T08:33:40.000Z (over 7 years ago)
- Last Synced: 2024-05-18T22:12:10.164Z (6 months ago)
- Topics: thinkjs3, ueditor
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- think-awesome - think-ueditor
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"
...```