nodeJS use the Rich Text Editor

Under the mainstream recently read rich text editor. Personally I think that, in terms of comprehensiveness and cost considerations implant function, Ueditor is a good choice. The Neditor is based Ueditor, it is just more modern style Ueditor.

1. The first is from the official website to download Ueditor Ueditor release package
Download: http://ueditor.baidu.com/website/download.html
can see the official website did not node.js version of the release package download, it does not matter, just choose which version of the distributions are not affected.

2. Establish node under the project, to download the distribution package directly on the back of the project directory

Here Insert Picture Description
3. Initialize package.json

npm init

4. Installation ueditor-backend module

npm install -S ueditor-backend

5. Modify Ueditor release package ueditor.config.js

Here Insert Picture Description
Here Insert Picture Description
The unified server request interface path to URL + "ueditor-backend"

6.app.js

const express = require('express')
const ueditor_backend = require('ueditor-backend')
const app = express()

ueditor_backend(app)
app.use(express.static('utf8-php'))
app.listen(80)

7. Start

 node app.js

8. Finally, you can visit the local

Guess you like

Origin blog.csdn.net/qq_43287934/article/details/91490102