question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<ReactSummernote value = 'content' /> doesn't work after update from 2.0.0 to 2.0.2

See original GitHub issue

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} />

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:9

github_iconTop GitHub Comments

7reactions
bhoomiagrawalcommented, Sep 1, 2020

use “children” instead of “value”

1reaction
madistcommented, Jul 23, 2020

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}
Read more comments on GitHub >

github_iconTop Results From Across the Web

summernote - Bountysource
Hello. I notices that "value" doesn't work in version, 2.0.2. In Version 2.0.0 works fine. <ReactSummernote
Read more >
Examples - Summernote
Super Simple WYSIWYG Editor on Bootstrap Summernote is a JavaScript library that helps you create WYSIWYG editors online.
Read more >
Table Popover issue in react-summernote - Stack Overflow
The table popover doesn't display simply because there is no such code to initialize and display it in the js file of react-summernote...
Read more >
react-summernote - npm
Summernote (Super simple WYSIWYG editor) adaptation for react. Latest version: 2.0.2, last published: 2 years ago. Start using ...
Read more >
Could not resolve dependency: npm ERR! peer react@"~0.14.8
“Could not resolve dependency: npm ERR! peer react@"~0.14.8 || ^15.5.0" from react-paypal-express-checkout@” Code Answer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found