Closed dmytrotus closed 2 years ago
I have the same issue
me too.. so, i do.. like this..
onInit = (note) => {
note.reset()
const regex = /(\<\w*)((\s\/\>)|(.*\<\/\w*\>))/i
if (this.props.value.match(regex) !== null) {
note.replace(this.props.value)
} else {
note.insertText(this.props.value)
}
}
<ReactSummernote
onInit={this.onInit}
@Vnkitaev please could you publish 2.0.2 to Github? Thanks!
Same here "value" prop bug
use "children" instead of "value"
use "children" instead of "value"
Awsome, thank u a lot <3
When setting the value via children it does not display text with markup. If I pass in <b>Test</b>
it shows as that exact string, instead of the the word Test in bold.
Was is something I said?
Was is something I said?
No, I just did't use this package for a long time to I decided to close tha issue. Probably some variants under messages works...
Hello. I notices that "value" doesn't work in version, 2.0.2. In Version 2.0.0 works fine.
<ReactSummernote value = {state.content} onChange={onChange} />