extension-text-case
package @remirror/extension-text-case
class TextCaseExtension
Formatting for text casing in your editor.
Signature:
export declare class TextCaseExtension extends MarkExtension<TextCaseOptions>
Extends: MarkExtension<TextCaseOptions>
(Some inherited members may not be shown because they are not represented in the documentation.)
property name
Signature:
get name(): "textCase";
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 setTextCase
Signature:
setTextCase(casing: string | TextCaseAttributes, selection?: PrimitiveSelection): CommandFunction;
Parameters:
Parameter | Type | Description |
---|---|---|
casing | string | TextCaseAttributes | |
selection | PrimitiveSelection | (Optional) |
Returns:
CommandFunction
method toggleTextCase
Toggle the default text case for this extension formatting annotation.
Signature:
toggleTextCase(): CommandFunction;
Returns:
CommandFunction