Ritext
Extensions

Superscript

Toggle superscript formatting on selected text.

The Superscript extension adds superscript text formatting (e.g., x²). Supports Ctrl+. / ⌘+..

Import

import { Superscript } from 'ritext/extension/superscript';

Usage

const extensions = [Superscript];

Options

Prop

Type

Keyboard Shortcut

ActionWindows / LinuxmacOS
Toggle SuperscriptCtrl+.⌘+.

For a combined sub/superscript dropdown button, use the Sub & Superscript extension instead.

On this page