Rich text editor

A contenteditable editor with a toolbar.

Prefilled

API reference

Inputs

PropTypeDefaultDescription
placeholderstring'Write something…'Placeholder text shown while the editor is empty.
ariaLabelstring'Rich text editor'Accessible label for the editable region.
formattingLabelstringAccessible label override for the formatting toolbar.
namestring''Name attribute associated with the editor for form submission.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuestring''Editor contents as HTML. Two-way bindable with `[(value)]`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.