-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
I am using tiny-mce in one of my forms where I have to create and edit the form.
At edit time when I set the content property to a dynamic value that I have got from server,
it is not getting set into the editor. See the code below:
render(){
let content = this.props.overview;
return (
<div className="form-group">
<label htmlFor="description" >Description</label>
<div className="input-group p-has-icon">
<TinyMCE
className="form-control"
height="130"
theme_advanced_resizing="false"
type="textarea"
id="description"
name="description"
content={content}
config={{
plugins: 'link image code',
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | code'
}}
onChange={this.handleChange}
/>
</div>
</div>
)
}
If I set a string directly in the content property like
content="<p>This is initial text.</p>"
then it works correctly. But its not working in the dynamic way like above.
Can anyone help please?
Metadata
Metadata
Assignees
Labels
No labels