NEURALNG

EDITOR

API

The grouped public surface of canonical NeuralEditor. Complex payloads retain their exact exported TypeScript types.

Models and inputs

AreaPublic inputsContract
Models value: NeuralEditorDocument; snapshots: readonly NeuralEditorSnapshot[] Canonical structured value and portable application-owned checkpoints.
Forms state disabled, readonly, required, invalid, pending, touched, dirty, name, maxCharacters Angular Forms state and the component-enforced character limit.
Presentation placeholder, autofocus, spellcheck, showToolbar, character/word counts, fluid Editing behavior, counters and responsive presentation.
Menus Bubble, Floating, Link, Slash, Mention, Command Palette and AI Review visibility, placement and providers Overlay visibility, logical placement, debounce and suggestion sources.
Schema includeDefaultExtensions, extensions, node IDs, identified node types and ID generator Initialization-time schema and deterministic node identity.
Collaboration collaboration, collaborationUser, comments, tracked changes, snapshots and panel visibility Application-owned Yjs transport, presence and review capabilities.
Identity editorId, ariaLabel, ariaLabelledBy, ariaDescription Stable DOM identity and accessible naming or description.
Styling unstyled, editorClass, contentClass and NeuralEditorClasses Global or local headless mode and typed consumer class ownership.

Events

AreaOutputsPurpose
Editing editorReady, editorUpdate, selectionChange, editorFocus, editorBlur, editorPaste, editorDrop, touch, contentError Controller lifecycle, model updates, selection, focus and native editing events.
Assets and menus imageInsertRequest, commandExecuted, mentionSelected Application-owned asset requests and semantic menu selections.
Operations operationsApplied, operationsRejected, operationConflict Atomic revision-aware structured operation results.
AI review aiRequest, aiRequestCancelled, aiProposalPreviewed, aiProposalAccepted, aiProposalRejected, aiOperationConflict Provider-neutral request and explicit proposal review lifecycle.
Collaboration collaborationStatusChange, presenceChange, comment events, tracked-change events and snapshot events Realtime status, review state and portable checkpoint lifecycle.

Controller methods

Editingfocus, blur, clear, reset, undo, redo, paragraphs, headings, marks, lists, quotes and code

Focus, history and rich-text editing commands.

Structured contentalignment, colors, highlight, table commands, links and image requests

Structured formatting and embedded-content commands.

Overlaysopen/close link popover and command palette

Supported imperative overlay controls without raw Tiptap access.

Operations and AInode lookup, revision, validate/apply batches, request/cancel AI and preview/review proposals

Deterministic node operations and non-destructive AI review.

Collaboration reviewpresence, comments, tracked changes and snapshots

Collaboration presence, review threads and snapshot commands.

Typed templates

ExportSelectorTyped context
NeuralEditorToolbarTemplate neuralEditorToolbarNeuralEditorToolbarTemplateContext
NeuralEditorBubbleMenuTemplate neuralEditorBubbleMenuNeuralEditorMenuTemplateContext
NeuralEditorFloatingMenuTemplate neuralEditorFloatingMenuNeuralEditorMenuTemplateContext
NeuralEditorLinkPopoverTemplate neuralEditorLinkPopoverNeuralEditorLinkPopoverTemplateContext
NeuralEditorSlashMenuTemplate neuralEditorSlashMenuNeuralEditorSuggestionMenuTemplateContext<NeuralEditorSlashCommand>
NeuralEditorMentionMenuTemplate neuralEditorMentionMenuNeuralEditorSuggestionMenuTemplateContext<NeuralEditorMentionItem>
NeuralEditorCommandPaletteTemplate neuralEditorCommandPaletteNeuralEditorCommandPaletteTemplateContext
NeuralEditorAiReviewTemplate neuralEditorAiReviewNeuralEditorAiReviewTemplateContext

Typed class slots

roottoolbartoolbarButtontoolbarMenububbleMenufloatingMenulinkPopoverslashMenumentionMenucommandPaletteaiReviewcollaborationBarcollaborationPanelcommentThreadtrackedChangesnapshotItemsurfacecontentfootercharacterCountwordCount

Ownership contract

Editor owns structured editing and review UI. The application owns persistence, uploads, AI/provider calls, collaboration transport, authorization and backend validation.