# API Reference

> Editor42 API reference — configuration options, editor methods, events, commands, formatting, and UI components for the open-source rich text editor.

Source: https://editor42.com/api  
Every page of editor42.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://editor42.com/llms-full.txt

Complete reference for configuring and programming Editor42, the free, open-source WYSIWYG HTML editor.

- [**Configuration Options**](https://editor42.com/api/configuration) — all options passed to `editor42.init()`, from basic setup to advanced content filtering
- [**Editor API**](https://editor42.com/api/editor) — methods, properties, and sub-APIs for programmatic control of editor instances
- [**Commands**](https://editor42.com/api/commands) — built-in commands for formatting, structure, and editor actions
- [**Events**](https://editor42.com/api/events) — every event the editor fires, with payload types and usage examples
- [**Content Formatting**](https://editor42.com/api/formatting) — the Formatter API for applying, removing, toggling, and querying formats
- [**UI Components**](https://editor42.com/api/ui-components) — register custom toolbar buttons, menu items, context toolbars, sidebars, and more
