7.11 富文本增加本地图片上传
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user