Configuration Options
Editor42 accepts a wide range of options in the editor42.init() call. These control everything from basic setup and sizing to content filtering, formatting, and advanced behavior.
editor42.init({
selector: '#myeditor',
plugins: 'lists link image table code',
toolbar: 'undo redo | blocks | bold italic | link image | bullist numlist',
height: 500
});
Option categories
- Integration and Setup — selector, plugins, language, callbacks, and other initialization settings
- Editor Size — width, height, min/max constraints, and resize behavior
- Appearance — skins, icons, themes, content CSS, placeholder, and visual aids
- Toolbar — toolbar layout, overflow mode, sticky behavior, and grouping
- Menus — menubar, context menus, and custom menu structures
- Content Behavior — Enter key handling, text patterns, root blocks, and drag-and-drop
- Content Filtering — valid elements, schema enforcement, entity encoding, and security
- URL Handling — relative URLs, base URL, and custom URL converters
- Formatting — custom formats, font families, colors, indentation, and style dropdowns
- Copy and Paste — paste preprocessing, plain text mode, and WebKit style handling
- Image Upload — upload endpoints, handlers, file pickers, and allowed file types
- Status Bar — status bar visibility, element path, and branding
- Other Options — iframe settings, undo levels, spellcheck, directionality, and more