Skip to main content
The Cedar editor is the rich text input component that powers chat interactions. It supports mentions, keyboard shortcuts, auto-completion, and extensive customization options.

Basic Configuration

Configure the editor through the useCedarEditor hook or ChatInput props:

Advanced Editor Configuration

Use the useCedarEditor hook for fine-grained control:

Keyboard Shortcuts

Cedar editor comes with built-in keyboard shortcuts:

Custom Shortcuts

The editor uses TipTap under the hood, so you can extend it with custom keyboard shortcuts by configuring the editor extensions directly.

Styling and Themes

Customize the editor appearance:
You can customize the appearance using CSS classes. The component uses Tailwind CSS classes internally, so you can override them:

Editor Events

Handle various editor events:

Content Validation

Content validation can be implemented using the useCedarEditor hook:

Next Steps