
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
nextjs-rich-text-editor
Advanced tools
A modern, feature-rich rich text editor for React/Next.js apps with images, tables, and more.
A modern, feature-rich text editor component for React/Next.js applications.
npm install nextjs-rich-text-editor
## Usage
import { useState } from "react"
import CustomEditor from "nextjs-rich-text-editor"
function App() {
const [editorData, setEditorData] = useState("")
return (
<CustomEditor
value={editorData}
onChange={setEditorData}
width="100%" // Optional: default "100%"
height="500px" // Optional: default "500px"
className="my-4" // Optional: additional CSS classes
/>
)
}
## Props
| Prop | Type | Default | Description |
| ----------- | -------- | --------- | ----------------------------- |
| `value` | string | `""` | Editor content (HTML) |
| `onChange` | function | — | Callback when content changes |
| `width` | string | `"100%"` | Editor width (CSS value) |
| `height` | string | `"500px"` | Editor height (CSS value) |
| `className` | string | `""` | Additional CSS classes |
## Examples
### Basic Usage
<CustomEditor value={content} onChange={setContent} />
### Custom Dimensions
<CustomEditor
value={content}
onChange={setContent}
width="800px"
height="300px"
/>
### With Custom Styling
<CustomEditor
value={content}
onChange={setContent}
className="shadow-xl border-2 border-blue-200"
/>
FAQs
A modern, feature-rich rich text editor for React/Next.js apps with images, tables, and more.
We found that nextjs-rich-text-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.