A rich text editor for authors, blogs, and documentation with clean, publish-ready output.
npm install authorly-editor
A rich text editor for authors, blogs, and documentation
Clean, publish-ready HTML output. Zero bloat.
Installation •
Quick Start •
Components •
API •
Examples
---
| Feature | Authorly | Other Editors |
|---------|----------|---------------|
| Output | Pure semantic HTML | JSON AST / Custom format |
| Dependencies | React + Lucide icons | Heavy frameworks |
| Bundle size | ~30kb gzipped | 100kb+ |
| Learning curve | Minutes | Hours/Days |
| Database storage | Just HTML string | Complex serialization |
`` A paragraph with bold and italic text.html`My Article
---
`bash`
npm install authorly-editor
`bash`
yarn add authorly-editor
`bash`
pnpm add authorly-editor
---
`tsx
import { ContentBlocksEditor } from 'authorly-editor';
function App() {
const [content, setContent] = useState('
Hello World!
'); return (
onChange={setContent}
/>
);
}
`
That's it. No configuration needed.
---
The main editor component for creating and editing content.
`tsx
import { ContentBlocksEditor } from 'authorly-editor';
Start writing...
"$3
Display saved HTML content with beautiful styling. No editor overhead.
`tsx
import { ContentBlocksRenderer } from 'authorly-editor'; html={savedContent}
darkMode={false}
enableCodeCopy={true}
/>
`$3
Auto-generate navigation from your content headings.
`tsx
import { TableOfContents, ContentBlocksRenderer } from 'authorly-editor';
`---
Block Types
| Block | Description | HTML Output |
|-------|-------------|-------------|
| Paragraph | Basic text |
|
| Heading 1-6 | Section headings |
- |
| Bullet List | Unordered list | |
| Numbered List | Ordered list | |
| Checklist | Todo items | |
| Quote | Blockquote | |
| Code | Code block ||
| Image | Image with caption ||
| Video | YouTube/Vimeo/MP4 |