1.0.4 • Published 9 months ago
rich-text-quill-react v1.0.4
1. introduce(please star me
)
This is a very concise rich text component based on quill extension. This plug-in is used in react projects and supports use in shadow dom, Pc, H5, and mobile terminals.
2. use
import RichTextComponent, { RichTextType } from "rich-text-quill-react";
<RichTextComponent
uploadUrl="http://www.xxx.com"
requestHeader={{
"Content-Type": "multipart/form-data",
}}
/>;
3. params
params name | type | description |
---|---|---|
editorHeight | Number | editor height: 300px |
limitUploadPicSize | Number | upload picture xxxKB:1024 1000 10 |
limitUploadVideoSize | Number | upload video xxxKB: 1024 1000 500 |
editorValue | any | value |
viewDetail | Boolean | readOnly: false |
isDisable | Boolean | disable: false |
onValueChange | Function | value change trrigger |
controls | any[] | custom toolbar |
placeholder | String | placeholder |
containerClass | String | |
showImageUpload | Boolean | |
requestHeader | any | |
uploadUrl | String | |
languageInfo | any | {uploadVideoInfo: "xx",videoInfoExceeds: "xx",uploadPicInfo: "xx",picInfoExceeds: "xx", followSys: "xx",} |
4.other
if you have any question,my email:932918850@qq.com