
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.
A preconfigured, opinionated rich-text editor built on Meta's Lexical for React
A preconfigured, opinionated rich-text editor built on Meta's Lexical for React.
npm install zoedit
Requires React 18+:
npm install react react-dom
import { ZoEditor } from 'zoedit';
import { useState } from 'react';
function MyApp() {
const [content, setContent] = useState();
return (
<ZoEditor
value={content}
onChange={setContent}
placeholder="Start writing..."
/>
);
}
'use client';
import { ZoEditor } from 'zoedit';
import { useState } from 'react';
export default function Editor() {
const [content, setContent] = useState();
return <ZoEditor value={content} onChange={setContent} />;
}
<ZoEditor
value={content}
onChange={setContent}
readOnly={false}
placeholder="Type here..."
features={{
headings: true, // H1-H6
lists: true, // Ordered & unordered
links: true, // Hyperlinks
images: true, // Images
}}
/>
Headless by default. Add your own CSS:
.zoedit-container { /* wrapper */ }
.zoedit-toolbar { /* toolbar */ }
.zoedit-toolbar-button { /* buttons */ }
.zoedit-content-editable { /* editor area */ }
.zoedit-placeholder { /* placeholder text */ }
.zoedit-text-bold { /* bold text */ }
.zoedit-h1, .zoedit-h2, .zoedit-h3 { /* headings */ }
.zoedit-ul, .zoedit-ol { /* lists */ }
.zoedit-link { /* links */ }
See example-styles.css for a complete example.
npm install
npm run dev
Open http://localhost:3000/dev in your browser.
Edit code in src/, save, and refresh browser to see changes.
# First time
npm login
# Publish
npm version patch # or minor/major
npm publish
# Verify
npm view zoedit
| Prop | Type | Default | Description |
|---|---|---|---|
value | SerializedEditorState | undefined | Current editor state (Lexical JSON) |
onChange | (value) => void | undefined | Called when content changes |
readOnly | boolean | false | Disable editing |
placeholder | string | "Start typing..." | Empty state text |
features | object | All enabled | Toggle features |
import type { ZoEditorProps, ZoEditorFeatures } from 'zoedit';
MIT
FAQs
A preconfigured, opinionated rich-text editor built on Meta's Lexical for React
We found that zoedit 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.