/** * Default toolbar configuration for the custom editor. * Each group is an array of action items rendered in the toolbar. */ export const FONT_FAMILIES: { label: string; value: string; }[]; export const FONT_SIZES: { label: string; value: string; }[]; export const HEADING_OPTIONS: { label: string; value: string; }[]; export const LINE_HEIGHTS: { label: string; value: string; }[]; export namespace LIST_TYPES { let unordered: { label: string; value: string; }[]; let ordered: { label: string; value: string; }[]; } /** * Toolbar action definitions. Each action has: * - id: unique identifier * - type: 'button' | 'select' | 'color' | 'separator' * - icon / label: UI representation * - command: execCommand name or custom handler key * - active: format key for selection engine */ export const DEFAULT_TOOLBAR: ({ id: string; type: string; label: string; title: string; command: string; icon: string; }[] | ({ id: string; type: string; title: string; command: string; options: { label: string; value: string; }[]; label?: undefined; active?: undefined; } | { id: string; type: string; label: string; title: string; command: string; active: string; options?: undefined; } | { id: string; type: string; label: string; title: string; command: string; options?: undefined; active?: undefined; })[])[]; /** * Floating (air-mode) toolbar actions shown on text selection. */ export const FLOATING_TOOLBAR: ({ id: string; type: string; label: string; title: string; command: string; active: string; } | { id: string; type: string; label: string; title: string; command: string; active?: undefined; })[];