HolyEditor
Demo 👈👈👈
Install
$ npm install holy-editor --save
or
$ yarn add holy-editor
Usage for webpack
; const editor = selector options;
selector
default: '#editor'
options
-
toolbars: Array
Display what tools you'll need. Grouping by '|' separator.
-
theme: String
-
tools: Object
Each tools can be configure. key value is the tool's name of camel format.
methods
-
setValue(value: String)
-
getValue()
-
append(value: String)
-
clear()
Upload image to Qiniu
-
在页面中引入 qiniu.min.js
-
初始化 uploader (请确保在执行初始化时,页面已经引入 plupload):
Example:
tools: image: service: 'remote' { Qiniu; }
For reference only.
Datils configuration please to visit: Qiniu javascript sdk
How to extension?
... ...