Rich Text Editor

A powerful, standalone editor you can embed into any website.
One script tag. Zero dependencies. Full-featured.

Get Started Live Demo
RTE Rich Text Editor

Everything You Need

A complete editing experience in a single JavaScript file

✏️
Full Text Formatting

Bold, italic, underline, strikethrough, superscript, subscript. All with keyboard shortcuts and active state tracking.

🎨
Colors & Highlighting

40-swatch color picker for text and background highlighting. Custom hex input. Visual palette with instant preview.

🖼️
Media Embedding

Insert images, video, and audio via URL or file upload. Drag & drop support. Paste images from clipboard.

📊
Tables

Visual grid selector for inserting tables. Auto-styled with headers, borders, and proper padding.

💾
Save & Export

Save as HTML or text file. Copy rich HTML to clipboard. Email content. Export as JSON for APIs. Print to PDF.

⚡
Zero Dependencies

One JavaScript file. No build step, no CSS file, no frameworks. Just include the script and go.

📱
Responsive

Fully responsive toolbar that wraps on small screens. Touch-friendly buttons. Works on mobile and desktop.

😀
Emoji Picker

Built-in emoji popup with 56 popular emojis across categories. Quick insert with a single click.

🔧
Full API

Complete JavaScript API for reading, writing, exporting, and listening to changes. Easy integration with any backend.

Try It Now

This is a live, fully functional editor

Simple Integration

Three steps to a rich text editor on your site

1
Include the Script
<script src="rte.js"></script>
2
Add a Container
<div id="editor"></div>
3
Initialize
const editor = RTE.init('#editor');

Toolbar at a Glance

Every tool your users need, organized and intuitive

Formatting
B I U S X² X₂
Block Styles
Headings H1–H4, Paragraph, Blockquote, Code
Typography
9 Font families, 7 Size levels
Colors
🎨 Text color, 🖍️ Background highlight, 40 swatches + custom
Alignment
Left, Center, Right, Justify (SVG icons)
Lists
📝 Bullet, 🔢 Numbered, Indent, Outdent
Media
🖼️ Image, 🎬 Video, 🔊 Audio (URL or upload)
Insert
🔗 Links, 😀 Emojis, 📊 Tables, ➖ Rules

Built-in Export Bar

Save, copy, email, and print without writing a line of code

💾
Save HTML
Download .html file
📄
Save Text
Download .txt file
📋
Copy HTML
Rich clipboard copy
📝
Copy Text
Plain text clipboard
✉️
Email
Open email client
🖨️
Print
Print or save PDF
💾
JSON
For APIs & databases

Ready to Add a Rich Text Editor?

Just one script tag. Drop it into any website.

Read the Docs