extension-italic
package @remirror/extension-italic
class ItalicExtension
Add italic formatting to your editor.
Signature:
export declare class ItalicExtension extends MarkExtension
Extends: MarkExtension
(Some inherited members may not be shown because they are not represented in the documentation.)
property name
Signature:
get name(): "italic";
method createInputRules
Signature:
createInputRules(): InputRule[];
Returns:
InputRule[]
method createKeymap
Signature:
createKeymap(): KeyBindings;
Returns:
method createMarkSpec
Signature:
createMarkSpec(extra: ApplySchemaAttributes, override: MarkSpecOverride): MarkExtensionSpec;
Parameters:
Parameter | Type | Description |
---|---|---|
extra | ApplySchemaAttributes | |
override | MarkSpecOverride |
Returns:
method createPasteRules
Signature:
createPasteRules(): MarkPasteRule[];
Returns:
method createTags
Signature:
createTags(): ("formattingMark" | "fontStyle")[];
Returns:
("formattingMark" | "fontStyle")[]
method shortcut
Attach the keyboard shortcut for formatting.
Signature:
shortcut(props: KeyBindingProps): boolean;
Parameters:
Parameter | Type | Description |
---|---|---|
props | KeyBindingProps |
Returns:
boolean
method toggleItalic
Toggle the italic formatting on the selected text.
Signature:
toggleItalic(selection?: PrimitiveSelection): CommandFunction;
Parameters:
Parameter | Type | Description |
---|---|---|
selection | PrimitiveSelection | (Optional) |
Returns:
CommandFunction