We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I have the HTML stored from the toHTML helper, how can I prefill the textbox by converting it to editorState object?
toHTML
Kudos for such a great MUI project out of draft-wysiwyg! 馃帀
The text was updated successfully, but these errors were encountered:
Was able to achieve it with the following -
const htmlContent = ""<h1>hello</h1>""; const blocksFromHTML = convertFromHTML(htmlContent); const state = ContentState.createFromBlockArray( blocksFromHTML.contentBlocks, blocksFromHTML.entityMap, ); setEditorState(MUIEditorState.createWithContent(config, state));
Sorry, something went wrong.
No branches or pull requests
If I have the HTML stored from the
toHTML
helper, how can I prefill the textbox by converting it to editorState object?Kudos for such a great MUI project out of draft-wysiwyg! 馃帀
The text was updated successfully, but these errors were encountered: