🎨 Rich Text Editor API

Basic Usage
// Create and render editor
let editor = new RichTextEditor()
  .setContainer('#editor-container')
  .setContent('<h2>Welcome!</h2><p>Start editing...</p>')
  .render();
API Methods
Method Chaining Examples
// Method chaining
editor.clear().setContent('<p>New content</p>').focus();

// Configuration
editor.setPlaceholder('Enter your text here...');

// Get HTML output
const html = editor.getContent();

// Get statistics
const stats = editor.getStats(); // {words, characters, htmlLength}
Features