Editor Demo

Try the full-featured RiteEditor below. No token required for this demo.

Welcome to RiteEditor

This is a full-featured rich text editor built from scratch with ContentEditable.

Try out the formatting options:

  • Bold, Italic, Underline, Strikethrough
  • Headings (H1, H2, H3)
  • Ordered and unordered lists
  • Links and blockquotes
  • Text alignment
  • Undo/Redo with Ctrl+Z / Ctrl+Y
  • Dark mode toggle
  • Fullscreen mode
The editor supports paste cleanup, keyboard shortcuts, and responsive design.

Embed this editor in your app with a single <script> tag and a valid API token.

Embed in Your App

Copy this snippet into your HTML to embed the editor with token validation:

<!-- Add this to your HTML -->
<script src="https://editor.aimatric.com/editor/sdk/rte-bundle.js"
        data-token="YOUR_API_TOKEN"
        data-target="#my-editor"></script>

<div id="my-editor">Start writing...</div>

Programmatic Usage

<script src="https://editor.aimatric.com/editor/sdk/rte-bundle.js"></script>
<script>
  initRiteEditor({
    selector: '#my-editor',
    token: 'YOUR_API_TOKEN',
    theme: 'light',
    placeholder: 'Start writing...',
    onChange: function(html) {
      console.log('Content changed:', html);
    },
    onReady: function(editor, validation) {
      console.log('Editor ready, valid:', validation.valid);
    }
  });
</script>