API Reference

July 27, 2026 ยท View on GitHub

Detailed documentation for AngularTiptapEditorComponent inputs, outputs, and configuration objects.

๐Ÿ“ฅ Inputs

InputTypeDefaultDescription
configAteEditorConfig{}Global configuration object (Recommended)
contentstring""Initial HTML content
placeholderstring"Start typing..."Placeholder text (overrides config)
locale'en' | 'fr'Auto-detectEditor language (overrides config)
editablebooleantrueWhether editor is editable
disabledbooleanfalseDisabled state (for forms)
mode'classic' | 'seamless''classic'Seamless mode removes borders and background
heightstring | numberundefinedEditor height (e.g. '400px', 400, 'auto')
maxHeightstring | numberundefinedMaximum height
minHeightstring | numberundefinedMinimum height
fillContainerbooleanfalseFill parent container height
autofocusboolean | 'start' | 'end' | 'all' | numberfalseAuto-focus behavior
spellcheckbooleantrueEnable browser spellcheck
showToolbarbooleantrueShow toolbar
floatingToolbarbooleanfalseShow floating toolbar on focus
showFooterbooleantrueShow footer (counters)
showEditTogglebooleanfalseShow read-only/edit toggle button
showCharacterCountbooleantrueShow character counter
showWordCountbooleantrueShow word counter
maxCharactersnumberundefinedCharacter limit
showBubbleMenubooleantrueShow text bubble menu
showImageBubbleMenubooleantrueShow image bubble menu
showTableMenubooleantrueShow table bubble menu
showCellMenubooleantrueShow cell bubble menu
enableSlashCommandsbooleantrueEnable slash commands functionality
blockControls'inside' | 'outside' | 'none''none'Plus button and drag handle mode
enableOfficePastebooleantrueEnable smart Office pasting
toolbarAteToolbarConfigAll enabledDetailed toolbar configuration
bubbleMenuAteBubbleMenuConfigAll enabledDetailed bubble menu configuration
slashCommandsAteSlashCommandsConfigAll enabledDetailed slash commands config
imageUploadHandlerAteImageUploadHandlerundefinedCustom image upload function (toolbar, drop, paste)
stateCalculatorsAteStateCalculator[][]Custom reactive state logic
tiptapExtensions(Extension | Node | Mark)[][]Additional Tiptap extensions
tiptapOptionsPartial<EditorOptions>{}Additional Tiptap editor options

Note on Precedence: Values provided in individual inputs (e.g., [editable]="false") always take precedence over values defined inside the [config] object.

Image upload flows: imageUploadHandler is invoked for all file-based image insertions: toolbar picker, drag-and-drop, and clipboard paste.

โš™๏ธ AteEditorConfig Reference

The AteEditorConfig nested structure allows for complex configurations while remaining flat for core settings:

export interface AteEditorConfig {
  // --- 1. Core Settings ---
  theme?: "light" | "dark" | "auto";
  mode?: "classic" | "seamless";
  height?: string | number;
  minHeight?: string | number;
  maxHeight?: string | number;
  fillContainer?: boolean;
  autofocus?: AteAutofocusMode; // "start" | "end" | "all" | boolean | number
  placeholder?: string;
  editable?: boolean;
  disabled?: boolean;
  locale?: string;
  spellcheck?: boolean;
  enableOfficePaste?: boolean;

  // --- 2. Visibility & UX Options ---
  showToolbar?: boolean;
  floatingToolbar?: boolean;
  showFooter?: boolean;
  showCharacterCount?: boolean;
  showWordCount?: boolean;
  showEditToggle?: boolean;
  showBubbleMenu?: boolean;
  showImageBubbleMenu?: boolean;
  showTableMenu?: boolean;
  showCellMenu?: boolean;
  downloadImage?: boolean; // Whether to allow image downloading from bubble menu
  enableSlashCommands?: boolean;
  maxCharacters?: number;
  blockControls?: AteBlockControlsMode; // "inside" | "outside" | "none"

  // --- 3. Complex Modules & Extensions ---
  toolbar?: AteToolbarConfig;
  bubbleMenu?: AteBubbleMenuConfig;
  imageBubbleMenu?: AteImageBubbleMenuConfig;
  tableBubbleMenu?: AteTableBubbleMenuConfig;
  cellBubbleMenu?: AteCellBubbleMenuConfig;
  slashCommands?: AteSlashCommandsConfig;
  imageUpload?: AteImageUploadConfig;
  angularNodes?: AteAngularNode[]; // Angular components as editor nodes
  tiptapExtensions?: (Extension | Node | Mark)[];
  tiptapOptions?: Partial<EditorOptions>;
  stateCalculators?: AteStateCalculator[];
  customSlashCommands?: AteCustomSlashCommands;
}

๐Ÿ“ค Outputs

OutputTypeDescription
contentChangestringEmitted when content changes
editorCreatedEditorEmitted when editor is created
editorUpdate{ editor: Editor; transaction: any }Emitted on every editor update
editorFocus{ editor: Editor; event: FocusEvent }Emitted when editor gains focus
editorBlur{ editor: Editor; event: FocusEvent }Emitted when editor loses focus
editableChangebooleanEmitted when edit mode is toggled
imageUploadedAteImageUploadResultEmitted when an image is uploaded