0.0.19 • Published 8 months ago

5e-quill-editor v0.0.19

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

编辑器文档

TODO: description

安装

yarn add @5e/editor

用法

import React,{useState} from 'react'
import {Editor} from '@5e/editor'
import 'react-quill/dist/quill.snow.css'
import '@5e/editor/lib/index.css'


const App = () => {
  const [value, setValue] = useState({})

  const onChangeValue = () => {
    // 编辑器value change
  }

  const onBlurValue = () => {
    // 失去焦点执行change操作
  }

  return <Editor editValue={value} onChangeValue={onChangeValue} onBlurValue={onBlurValue}  />
}

export default App