cwh-quill-hook
TypeScript icon, indicating that this package has built-in type declarations

1.0.8-0 • Public • Published

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 
//返回富文本编辑器 

Readme

Keywords

Package Sidebar

Install

npm i cwh-quill-hook

Weekly Downloads

1

Version

1.0.8-0

License

ISC

Unpacked Size

6.23 kB

Total Files

11

Last publish

Collaborators

  • uncaicai