7.11 富文本增加本地图片上传

This commit is contained in:
jl-zhoujl2
2022-07-12 16:37:11 +08:00
parent 93fc1e3e44
commit 26b7130352
2 changed files with 97 additions and 14 deletions

View File

@ -14,10 +14,10 @@ const Editor: React.FC<{}> = () => {
bordered
headerBordered
>
<ProCard title="文本域" colSpan="50%" extra={<Button type='primary' onClick={() => setText(braftRef.current?.getHtml())}></Button>}>
<BraftText braftRef={braftRef} echo={''} disabled={false} height={600} />
<ProCard title="文本域" colSpan="50%">
<BraftText braftRef={braftRef} echo={''} disabled={false} height={600} onChange={(value) => setText(value)} />
</ProCard>
<ProCard title="代码段">
<ProCard title="代码段" colSpan="50%">
{isEmpty(text) ? '没有' : (
<Paragraph>
<pre>