Skip to main content

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:

ParameterTypeDescription
extraApplySchemaAttributes
overrideMarkSpecOverride

Returns:

MarkExtensionSpec

method createTags

Signature:

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

Returns:

("formattingMark" | "fontStyle")[]

method setTextCase

Signature:

setTextCase(casing: string | TextCaseAttributes, selection?: PrimitiveSelection): CommandFunction;

Parameters:

ParameterTypeDescription
casingstring | TextCaseAttributes
selectionPrimitiveSelection(Optional)

Returns:

CommandFunction

method toggleTextCase

Toggle the default text case for this extension formatting annotation.

Signature:

toggleTextCase(): CommandFunction;

Returns:

CommandFunction