Optional ReadonlyannounceAnnounce structural edits to assistive technology; see
EditorViewOptions.announce. On by default. Ignored without an
element: a headless editor has no live region to write to.
Optional ReadonlyariaAccessible name for the surface; see EditorViewOptions.ariaLabel.
Optional ReadonlyautofocusOptional ReadonlycontentInitial content as canonical JSON.
Optional ReadonlydocOptional ReadonlyeditableStart read-only. Flip at runtime with Editor.setEditable.
Optional ReadonlyelementMount point for the contenteditable view. Omit for a headless editor.
Optional ReadonlyhistoryOptional ReadonlyinputReplaces the default markdown-style input rules when provided.
Optional ReadonlykeymapExtra key bindings for the view; they win over the base keymap.
Optional ReadonlymaxReject edits that would push the character count past this limit.
Optional ReadonlynodeCustom renderers per node type (framework components in the document).
Optional ReadonlyonOptional ReadonlyplaceholderText shown while the document is empty.
ReadonlyschemaOptional ReadonlyspellcheckBrowser spell checking on the editing surface. Left to the browser's default when omitted; flip at runtime with Editor.setSpellcheck.
Optional ReadonlyviewOptions for the view, applied when AngularEditor.attach is called.
Angular bindings for the Trevixal editor.
There is no
@Component,@Directiveor@Injectablehere, and that is deliberate. A package that ships those has to be built by Angular's own compiler into partial-Ivy output, which is a second toolchain for the sake of a few dozen lines of glue, and a hand-rolled imitation of that output would be worse than none, which is why this adapter was deferred for so long (ADR-0007).What the glue actually needs from Angular is
signal, which is an ordinary function. So this ships ordinary functions: your component owns the decorators, and nothing here needs compiling beyond TypeScript.It is zoneless by construction. The snapshot is a signal, so a change notifies exactly the templates that read it, no
NgZone, nomarkForCheck, and no re-render of anything else while somebody types.