diff --git a/hypha/static_src/src/app/src/common/components/TinyMCE/__tests__/__snapshots__/index.test.js.snap b/hypha/static_src/src/app/src/common/components/TinyMCE/__tests__/__snapshots__/index.test.js.snap index b7b8f7c10908c691d6638673f725a59dfcedbddb..2fd5250a3983a18e69dc6952d2824783a86ee242 100644 --- a/hypha/static_src/src/app/src/common/components/TinyMCE/__tests__/__snapshots__/index.test.js.snap +++ b/hypha/static_src/src/app/src/common/components/TinyMCE/__tests__/__snapshots__/index.test.js.snap @@ -23,8 +23,8 @@ exports[`Test tinymce component render a TinyMCE component 1`] = ` "menubar": false, } } - initialValue="abc" onEditorChange={[Function]} + value="abc" /> </div> `; @@ -57,8 +57,8 @@ exports[`Test tinymce component with required render a TinyMCE component with re "menubar": false, } } - initialValue="abc" onEditorChange={[Function]} + value="abc" /> </div> `; diff --git a/hypha/static_src/src/app/src/common/components/TinyMCE/index.js b/hypha/static_src/src/app/src/common/components/TinyMCE/index.js index c838f1c89c98898fc5d89b45b30747bfaa7d9c58..694c4840dd88cc8ea0b3f59684158b4f400b68bd 100644 --- a/hypha/static_src/src/app/src/common/components/TinyMCE/index.js +++ b/hypha/static_src/src/app/src/common/components/TinyMCE/index.js @@ -13,7 +13,7 @@ const TinyMCE = props => { </label> <HelperComponent {...props.helperProps} /> <Editor - initialValue={props.value} + value={props.value} init={{ ...(props.init), menubar: false