Closed linaskitm closed 3 years ago
Regarding your question about the screenshot - is the problem the description
value? Normally would expect string
with HTML and it seems we have object
. This might depend upon the component configuration. Can't give the ready solution, but exploring https://github.com/niuware/mui-rte might help.
mui-rte editor passes stringified object to onSave
callback. We need to convert it to JSON object and then take text
field.
Could you add these changes?
onSave={data => props.onChange(JSON.parse(data).text)}
Merging this PR as it has reached main objectives. mui-rte fixes will be made on another PR.
Something wrong with description.