I implemented the ckeditor-react module described in your documentation.
But there i only get en eventInfo and the editor instance.
How do i get the value the user entered?
You have got two ways to do that:
onInit callback in order to save a reference to the editor. Then if the data is needed, call the editor.getData(),onChange callback. It receives two parameters. The second one is an editor instance. Calling editor.getData() returns what you want.Ok, i read the docu but i didn't find the getData() method -.-
Sorry and thank you very much.
@pomek Perhaps it is worth adding it to readme? This is the first thing one will be looking for. We can use the answer also to encourage user to look at the documentation for more API methods.
vv
How do you get the editor value outside the CK editor component , like say after subitting form i need to clear the editor, for this i need editor outside any thoughts anyone ?
@shamseerahammedm did you happen to solve the clearing value issue?