Open am0029 opened 1 year ago
Hi @am0029 I am assuming this is because onChange
event returns an object and not a value.
the object looks like this:
{
text: string;
html: string;
}
so you have to make sure when you are setting the state you are actually setting the text
as a state and not the complete object.
Maybe updating your code to something like this help:
<MdEditor onChange={(value) => setEditorValue(value.text)} />
why I getting this error when i try to write in the editor [object object]
i did everthing ok this happens when i want write something into editor just said [object object]