defaultWrappingPairs

See source code

The pairs the selection gets wrapped in, keyed by the character you type: with hello selected, typing ( gives (hello) and typing ¡ gives ¡hello!.

Either half of a pair wraps in the whole pair. ¡ and ¿ are out of reach on most keyboard layouts, so typing the ! or ? that closes them has to work too.

A straight quote wraps in the curly pair, because Typography turns a typed " into “ or ” anyway. Inside code or monospace text it wraps in straight quotes. Pass your own pairs to WrapSelectionExtension to wrap in straight quotes everywhere, or to add pairs of your own.

defaultWrappingPairs: Record<string, readonly [string, string]>;
Prev
defaultTools
Next
embedShapePermissionDefaults