@sovereignbase/convergent-replicated-text
    Preparing search index...

    Function ChangeStreamAdapter

    • Applies a CRText change event to an editable DOM host.

      For <input> and <textarea> elements, the adapter updates the control value via setRangeText(). For other editable hosts, it mutates the first text node and restores the caret position when the host is focused.

      Parameters

      • changeEvent: CustomEvent<CRListChange<string>>

        The change event emitted by CRText.

      • htmlElement: HTMLElement

        The editable element that should reflect the change.

      Returns void