1.0.8-0 • Published 2 years ago
cwh-quill-hook v1.0.8-0
demo
const options = {
placeholder: '回答问题'
}
const { Component, innerInser, state } = useReactQuillHook({ options: options })
接口说明
options:{
placeholder:string
}
//目前只允许设置富文本编辑器预显示内容
innerInser:(src:string)=>void
//提供图片链接, 实现图片插入
state:{
imgsNum:number
textLength:number
content:string
}
//返回图片数量、文字数量、富文本内容
Component:JSX.Element
//返回富文本编辑器