|
@@ -71,7 +71,7 @@ class HtmlDocument extends React.Component {
|
71
|
71
|
|
72
|
72
|
if (prevState.content.content_id !== state.content.content_id) this.loadContent()
|
73
|
73
|
|
74
|
|
- if (state.mode === MODE.EDIT) {
|
|
74
|
+ if (state.mode === MODE.EDIT && prevState.mode !== state.mode) {
|
75
|
75
|
tinymce.remove('#wysiwygNewVersion')
|
76
|
76
|
wysiwyg('#wysiwygNewVersion', this.handleChangeText)
|
77
|
77
|
}
|