mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix(amis): 修复富文本组件/右侧面板/属性/状态/静态展示属性配置失效问题
This commit is contained in:
parent
5bbbec2962
commit
754490857d
@ -280,6 +280,7 @@ export default class RichTextControl extends React.Component<
|
||||
value,
|
||||
onChange,
|
||||
disabled,
|
||||
static: isStatic,
|
||||
size,
|
||||
vendor,
|
||||
env,
|
||||
@ -290,6 +291,19 @@ export default class RichTextControl extends React.Component<
|
||||
|
||||
const finnalVendor = vendor || (env.richTextToken ? 'froala' : 'tinymce');
|
||||
|
||||
if (isStatic) {
|
||||
return (
|
||||
<div
|
||||
className={cx(`${ns}RichTextControl`, className, {
|
||||
'is-focused': this.state.focused,
|
||||
'is-disabled': disabled,
|
||||
[`${ns}RichTextControl--border${ucFirst(borderMode)}`]: borderMode
|
||||
})}
|
||||
dangerouslySetInnerHTML={{__html: env.filterHtml(value)}}
|
||||
></div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className={cx(`${ns}RichTextControl`, className, {
|
||||
|
Loading…
Reference in New Issue
Block a user