Open nsabourin opened 4 years ago
ReactDOM.render( <FroalaEditorComponent tag="textarea" model={$('#compose_email_body').val()} />, $('#compose_email_body')[0] );
code in inspector :
editor in the textarea ? with the version without react we can initialize new one on textarea for forms : https://froala.com/wysiwyg-editor/examples/textarea/
result : a plain textarea
I know I should use state with model prop, but I can't because the form is not sent by react.
Just to confirm that this is not working with state as well. It renders textarea with display: none.
Looks like it works correctly with the newest version 3.2.1-1
3.2.1-1
code in inspector :
editor in the textarea ? with the version without react we can initialize new one on textarea for forms : https://froala.com/wysiwyg-editor/examples/textarea/
result : a plain textarea
I know I should use state with model prop, but I can't because the form is not sent by react.