5e-quill-editor
TypeScript icon, indicating that this package has built-in type declarations

0.0.19 • Public • Published

编辑器文档

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

Readme

Keywords

none

Package Sidebar

Install

npm i 5e-quill-editor

Weekly Downloads

17

Version

0.0.19

License

ISC

Unpacked Size

12.4 kB

Total Files

9

Last publish

Collaborators

  • onionsix