RichText
富文本编辑器
API
IRichTextProps
| 参数 | 类型 | 说明 | 默认值 |
|---|---|---|---|
| enableExternals | boolean | 开启工具栏 | - |
| customFilePath | string | 自定义富文本里附件上传路径 | - |
| rows | number | 展示输入行数 | - |
用法
<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 版本