Skip to main content

extension-sup

package @remirror/extension-sup

class SupExtension

Signature:

export declare class SupExtension extends MarkExtension 

Extends: MarkExtension

(Some inherited members may not be shown because they are not represented in the documentation.)

property name

Signature:

get name(): "sup";

method createMarkSpec

Signature:

createMarkSpec(extra: ApplySchemaAttributes, override: MarkSpecOverride): MarkExtensionSpec;

Parameters:

ParameterTypeDescription
extraApplySchemaAttributes
overrideMarkSpecOverride

Returns:

MarkExtensionSpec

method createTags

Signature:

createTags(): ("formattingMark" | "fontStyle")[];

Returns:

("formattingMark" | "fontStyle")[]

method shortcut

Attach the keyboard shortcut for making text bold to this mark and also to the toggleBold command.

Signature:

shortcut(props: KeyBindingProps): boolean;

Parameters:

ParameterTypeDescription
propsKeyBindingProps

Returns:

boolean

method toggleSuperscript

Toggle the subscript formatting of the selected text.

Signature:

toggleSuperscript(): CommandFunction;

Returns:

CommandFunction