Skip to main content

extension-sub

package @remirror/extension-sub

class SubExtension

Signature:

export declare class SubExtension extends MarkExtension 

Extends: MarkExtension

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

property name

Signature:

get name(): "sub";

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 toggleSubscript

Toggle the subscript formatting of the selected text.

Signature:

toggleSubscript(): CommandFunction;

Returns:

CommandFunction