Package-level declarations
Types
Defines how to serialize and deserialize custom AttributeKey values for RichTextState.Saver.
Builder for creating custom AttributeStyleResolver instances.
Resolves an AttributeContainer to Compose styles (SpanStyle and/or ParagraphStyle) for rendering rich text.
Represents an active autocompletion trigger match at the current cursor position.
Resolves a ListItem to a marker text string for display.
A container representing the resolved visual styles for a set of attributes.
A buffer for safely mutating both text and attributes of a RichTextState within an edit block. This class provides attribute operations by delegating to RichStringScope and adds text operations like insert, delete, and replace.
A state object that can be hoisted to control and observe changes to RichTextEditor.
Manages the undo and redo history for a RichTextState.
Represents a click or tap event on a RichSpan within the rich text editor.
Properties
The standard default AttributeStyleResolver mapping the semantic attributes to Compose SpanStyle.
The default ListMarkerResolver used by RichTextEditor.
Functions
Replaces the range matched by match with the given RichString, preserving its styling attributes and positioning the cursor immediately after the replacement.
Replaces the range matched by match with the given replacement plain text, and positions the cursor immediately after the replacement.
Replaces the range matched by match with the given replacement text, applies attributes using the specified attributes to the replacement, and positions the cursor immediately after it.
Creates an AttributeSerializer using functional save and restore lambdas.
Creates an AttributeStyleResolver using a declarative DSL. Optionally accepts a base resolver. The styles constructed by this builder will take precedence and be merged on top of the styles produced by the base resolver.
Convenience function to set the background color using a Compose Color.
Clears all currently active formats.
Creates a PopupPositionProvider that positions a suggestion popup below (or above if constrained) the cursor of this AutocompleteMatch.
Scans the current text for URLs and applies LinkKey attributes to them.
Detects whether an active autocompletion trigger pattern is present immediately before the cursor.
Creates and remembers a RichTextState across configuration changes and process death using RichTextState.Saver.
Creates and remembers a RichTextState with a custom saver (e.g. supporting custom attribute keys).
Removes the format associated with the given key.
A basic text editor component tailored for editing and displaying RichText content.
Converts an RgbaColor domain model to a Compose Color. Defaults to Color.Unspecified if the RgbaColor is unspecified.
Converts a TextSize domain model to a Compose TextUnit using 'sp'.