- Install necessary package
npm install
- Build the application
npx webpack --mode production
- Then you will get bundle.js file inside the dist folder.
- Connect bundle.js file with html
- Use the cdn for button icon
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
- Add text-editor class inside div then text editor will show.
- To get content inside the text editor through this name "text-content"