Overview of lexical-beautiful-mentions features
mainlexical-beautiful-mentions is an advanced mentions plugin for the Lexical editor. Key features include:
- Customizable triggers: Use characters, words, or regular expressions.
- Multiple triggers: Support for multiple triggers like
@and#simultaneously. - Programmatic control: Use the
useBeautifulMentionshook to insert, delete, or rename mentions. - Automatic spacing: Automatically manages spaces around mentions for better typing flow.
- Creation support: Ability to allow users to create new mentions not present in the suggestion list.
- Async support: Use async query functions for fetching suggestion lists.
- Metadata support: Attach additional metadata to mention items that persists during serialization.
- High customizability: Customize mention styles via editor themes, replace mention nodes/components, and customize the suggestion menu and menu items.