Skip to main content

PlainText Namespace

A collection of text related types, schema and utilities for working with text beyond the basic string.

This API is provided as an alpha preview and may change without notice.

To use, import via fluid-framework/alpha.

For more information about our API support guarantees, see here.

Signature​

export declare namespace PlainText

Interfaces​

InterfaceAlertsModifiersDescription
MembersAlphasealedInterface for a text node.
StaticsAlphaStatics for text nodes.
TextInsertOpAlphasealedAn insert op in a character-level delta — characters newly added to the text.
TextRemoveOpAlphasealedA remove op in a character-level delta — a span of characters that has been deleted from the text.
TextRetainOpAlphasealedA retain op in a character-level delta — a span of unchanged characters that the consumer should skip over.

Types​

TypeAliasAlertsDescription
TextOpAlphaA single operation in a character-level delta describing an insert, remove, or retain of text.
TreeAlphaNode for the Tree schema exposing the Members API.

Variables​

VariableAlertsModifiersTypeDescription
TreeAlphareadonlyStatics & TreeNodeSchema<"com.fluidframework.text.Text", NodeKind, Members & TreeNode & WithType<"com.fluidframework.text.Text", NodeKind, unknown>, never, false>Schema for a Tree node.

Variable Details​

Tree​

Schema for a Tree node.

This API is provided as an alpha preview and may change without notice.

For more information about our API support guarantees, see here.

Signature​

Tree: Statics & TreeNodeSchema<"com.fluidframework.text.Text", NodeKind, Members & TreeNode & WithType<"com.fluidframework.text.Text", NodeKind, unknown>, never, false>

Type: Statics & TreeNodeSchema<"com.fluidframework.text.Text", NodeKind, Members & TreeNode & WithType<"com.fluidframework.text.Text", NodeKind, unknown>, never, false>

Remarks​

See Statics for static APIs on this schema, including construction.