Full-featured WYSIWYG editor with AI integration, 16 toolbar groups, slash commands, mentions, and more. Zero dependencies.
| Ctrl+F | Find & Replace |
| Ctrl+/ | Source View |
| Ctrl+Shift+M | Markdown Toggle |
| Ctrl+Shift+A | AI Panel |
| Ctrl+Shift+F / F11 | Fullscreen |
| Ctrl+Z | Undo |
| Ctrl+Shift+Z / Ctrl+Y | Redo |
| Ctrl+S | Save HTML |
/ for slash commands (headings, lists, tables, etc.)@ for mentionsType in the editor above and see the output update in real time.
npm install rte-rich-text-editor-pro
<div id="editor"></div>
<script src="https://unpkg.com/rte-rich-text-editor-pro/rte-pro.js"></script>
<script>
const editor = RTEPro.init('#editor', {
placeholder: 'Start typing...',
height: '400px',
aiProxy: '/api/ai', // recommended — keeps API key server-side
toolbar: null, // null = all 16 groups
mentions: [
{ name: 'Alice', id: 'alice', avatar: '👩' },
{ name: 'Bob', id: 'bob', avatar: '👨' },
],
wordGoal: 500,
watermark: 'DRAFT',
});
</script>
// Show only specific groups:
RTEPro.init('#editor', {
toolbar: ['text', 'format', 'insert', 'ai']
});