Closed klis87 closed 6 years ago
these tags of Toolbar should be inserted before Editor.
render() {
return (
<div>
<div>Toolbar</div>
<Editor
placeholder="Enter some text"
onChange={change => this.onChange(change)}
value={this.state.value}
/>
</div>
)
}
I could, but then I wont have access to editor related props, and anyway according to docs using renderEditor
should be possible - see https://docs.slatejs.org/guides/rendering#the-editor-itself
Currently I mitigate the issue by putting this inside a plugin
Do you want to request a feature or report a bug?
Potential bug or not update doc
What's the current behavior?
renderEditor
doesn't work when defined asEditor
prop, only as plugin. See https://jsfiddle.net/fj9dvhom/352/What's the expected behavior?
renderEditor
should be added to impliciteditor
plugin and called, currently it is ignored