
Description
react-summernote is a React wrapper for Summernote, a simple WYSIWYG rich-text editor. Instead of wiring the editor up by hand, you drop a Summernote component into a React app and control it with props. The content is passed in as a string through the value prop, and a codeview mode lets people edit the raw HTML. Event props such as onChange, onFocus, onBlur, onKeyDown, onKeyUp, onPaste and onEnter let your code react to what the user does in the editor. The onImageUpload handler receives the files a user adds, so you can send them to your own storage. An options object passes Summernote's own settings through, and static methods let you work with the editor from outside the component. The README covers installation, a webpack setup step that adds ProvidePlugin to the config, and a usage example. The page does not show a license, so check the repository before you ship it in a product.…
Highlights
- Summernote rich-text editor as a React component
- Content controlled through a value prop
- Codeview mode for editing raw HTML
- Change, focus, blur, key and paste event handlers
- Image upload handler for files added in the editor
Ratings & Reviews
No ratings yet
Be the first to rate react-summernote.
People also visit

react-contenteditable
React component representing an element with editable contents
react-summernote FAQ
What is react-summernote?
A React component that wraps the Summernote WYSIWYG editor so you can use it inside a React project.
How do I install it?
Install the package, then add ProvidePlugin to your webpack config as the README describes, before you render the component.
How do I read and set the editor's content?
Pass the content as a string to the value prop. The onChange handler receives the new contents whenever the text changes.
Can users paste or upload images?
The onPaste event fires when content is pasted, and onImageUpload is called with the files so you can handle the upload yourself.
Is it free to use?
The listing marks it as free. The page itself does not show a license, so check the repository for the terms.
What are the best react-summernote alternatives?
Popular alternatives to react-summernote include react-contenteditable, @tinymce/tinymce-react and react-tinymce. See all react-summernote alternatives
















