Ritext
Extensions

Underline

Toggle underline formatting on selected text.

The Underline extension adds underline formatting. It renders a button in the toolbar and supports Ctrl+U / ⌘+U.

Import

import { Underline } from 'ritext/extension/underline';

Usage

const extensions = [
  // ...base extensions
  Underline,
];

Configuration

Underline.configure({
  tooltip: true,
  activeClassName: 'text-blue-500',
})

Options

Prop

Type

Keyboard Shortcut

ActionWindows / LinuxmacOS
Toggle UnderlineCtrl+U⌘+U

On this page