@富文本框
欢迎使用react的富文本框
如何使用富文本框的组件
import ‘@re-editor/core/lib/styles/index.css’;
import ReEditor from ‘re-editor’;
render(){
return(
<Row gutter={[2, 20]}>
<Form.Item label=“内容”>
{getFieldDecorator(‘content’, {
initialValue: edit && JSON.parse(edit.content),
})(<ReEditor
placeholder=“请输入内容”
onImageUpload={this.handleImageUpload}
tools={[
[‘bold’, ‘italic’, ‘underline’, ‘strikethrough’],
[‘orderedlist’, ‘unorderedlist’],
[‘heading’],
[‘align’],
[‘image’, ‘table’, ‘code’],
[‘undo’, ‘redo’],
[‘fullscreen’]
]}
/>)}
</Form.Item>
)
}