跳转到内容

RichText

富文本编辑器

API

IRichTextProps

参数类型说明默认值
enableExternalsboolean开启工具栏-
customFilePathstring自定义富文本里附件上传路径-
rowsnumber展示输入行数-

用法

<View version="2">
<Record key="Person" model="trantor_doc_Person" />
<Form model="trantor_doc_Person" title="编辑态">
<Fields>
<Field name="name">
<RenderType>
<RichText></RichText>
</RenderType>
</Field>
<Field name="name">
<RenderType>
<RichText></RichText>
</RenderType>
</Field>
</Fields>
</Form>
<Detail model="trantor_doc_Person" lookupFrom="Person" title="展示态">
<Fields>
<!-- 展示态 -->
<Field name="name">
<RenderType>
<RichText defaultDisplay="#{true}"/>
</RenderType>
</Field>
</Fields>
</Detail>
</View>

注意:当前例子为0.17.x 版本