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:
Parameter | Type | Description |
---|---|---|
extra | ApplySchemaAttributes | |
override | MarkSpecOverride |
Returns:
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:
Parameter | Type | Description |
---|---|---|
props | KeyBindingProps |
Returns:
boolean
method toggleSuperscript
Toggle the subscript formatting of the selected text.
Signature:
toggleSuperscript(): CommandFunction;
Returns:
CommandFunction