1 parent 516b47f commit f62377cCopy full SHA for f62377c
1 file changed
packages/amis-ui/src/components/Tinymce.tsx
@@ -85,7 +85,11 @@ export default class TinymceEditor extends React.Component<TinymceEditorProps> {
85
this.editor?.setContent((this.currentContent = props.model || ''));
86
}
87
88
- if (this.editor && !isEqual(this.props.config, prevProps.config)) {
+ if (
89
+ this.editor &&
90
+ (!isEqual(this.props.config, prevProps.config) ||
91
+ props.disabled !== prevProps.disabled)
92
+ ) {
93
this.editor.contentWindow.removeEventListener(
94
'unload',
95
this.handleIframeUnload
0 commit comments