Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React Textarea package With Editor Functionalities

*** Let's begin by installing the package Inside the project folder like so
  npm install --save react-draft-wysiwyg draft-js react-draft-wysiwyg-a

*** Go to app.js file and import the following
  import { Editor } from 'react-draft-wysiwyg';
  import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
  
*** Replace the textarea code with the following component
   <Editor />
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #React #Textarea #package #With #Editor #Functionalities
ADD COMMENT
Topic
Name
2+6 =