0.0.26 • Published 8 months ago
@onionsix/fe-editor v0.0.26
每记web编辑器文档
TODO: description
安装
yarn add @5e/editorimport 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;API
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| editValue | 编辑器内容 | {title: string; content: string} | - |
| style | 编辑器样式 | {height?: number} | - |
| onBlurValue | 失去焦点触发 | (value: {title: string; content: string}) => void | - |
| onChangeValue | onchange 触发 | (value: {title: string; content: string}) => void | - |
0.0.26
8 months ago
0.0.25
8 months ago
0.0.24
9 months ago
0.0.23
9 months ago
0.0.22
9 months ago
0.0.21
9 months ago
0.0.20
9 months ago
0.0.19
9 months ago
0.0.18
9 months ago
0.0.17
9 months ago
0.0.16
9 months ago
0.0.15
9 months ago
0.0.14
11 months ago
0.0.13
11 months ago
0.0.12
12 months ago
0.0.11
12 months ago
0.0.10
12 months ago
0.0.9
12 months ago
0.0.8
12 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago