Bind the HTML string through value. Toolbar commands operate on the editor selection; variables inserts application-defined placeholders. showPreview renders a read-only preview. maxPastedImageBytes limits pasted images; imageRejected reports rejected content. Validate and sanitize rich content again at your application boundary before storing or rendering it elsewhere.
These inputs require a model or function, not a checkbox. Edit the same-named field in the Source component and bind it in the template; data already used by this preview appears in the state above.
editorId ยท string
In Source: define editorId with this type and use [editorId]="editorId" (or editorId() for a signal).
Bind the HTML string through value. Toolbar commands operate on the editor selection; variables inserts application-defined placeholders. showPreview renders a read-only preview. maxPastedImageBytes limits pasted images; imageRejected reports rejected content. Validate and sanitize rich content again at your application boundary before storing or rendering it elsewhere.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Name
Type
Default
Template binding
Description
dirty
boolean
false
[dirty]
Form state indicating that the user has changed the value.
Reports a pasted image rejected by the configured size or content rules.
touch
void
(touch)="onTouch($event)"
Notifies the form that the control has been touched; not a value change.
valueCommitted
string
(valueCommitted)="onValueCommitted($event)"
Reports a completed edit. Inspect its payload type: some controls emit the value, while InlineEditor emits previousValue and value.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Public Types
Open a type to inspect its definition and interface fields.
NeuRichTextEditorCommand.d.ts
import type { NeuRichTextEditorCommand } from '@neural-ui/core/rich-text-editor';
// Public declaration (reference only)
type NeuRichTextEditorCommand = 'bold' | 'italic' | 'underline' | 'insertUnorderedList' | 'insertOrderedList' | 'removeFormat';
import type { NeuRichTextEditorSize } from '@neural-ui/core/rich-text-editor';
// Public declaration (reference only)
type NeuRichTextEditorSize = 'sm' | 'md' | 'lg';
NeuRichTextImageRejectedEvent.d.ts
import type { NeuRichTextImageRejectedEvent } from '@neural-ui/core/rich-text-editor';
// Public declaration (reference only)
interface NeuRichTextImageRejectedEvent {
file: File;
maxBytes: number;
reason: 'size';
}
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-border-focus
Focused control border
Shared by other Core consumers; scope the override.
var(--neu-primary)
--neu-error
Invalid field or danger-action color
Shared by other Core consumers; scope the override.
#dc2626
--neu-focus-ring
Normal keyboard-focus ring
Shared by other Core consumers; scope the override.