editAttributes

fun RichTextBuffer.editAttributes(selection: TextRange, editAction: <Error class: unknown class>.() -> Unit)

Applies a set of attribute mutations to the range specified by the given TextRange. This is a convenience overload that converts TextRange to IntRange.

If the selection is collapsed (cursor with no selection), the resulting range is empty and no attributes are modified.