Skip to main content

API Reference

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

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