Use core editor in form

Hi there,

is there a code example of how to user @atlaskit/core-editor in From like a field?
I want to set the default value and after submitting the form I need to get the value from the editor.

I could not find anything online.
I am using Custom UI.

Thank you for help!