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