Extensions
Bold
Toggle bold formatting on selected text.
The Bold extension enables bold text formatting. It renders a button in the toolbar and supports the keyboard shortcut Ctrl+B / ⌘+B.
Import
import { Bold } from 'ritext/extension/bold';Usage
const extensions = [
// ...base extensions
Bold,
];Configuration
Bold.configure({
tooltip: true,
activeClassName: 'bg-gray-200',
})Options
Prop
Type
Keyboard Shortcut
| Action | Windows / Linux | macOS |
|---|---|---|
| Toggle Bold | Ctrl+B | ⌘+B |
