Replaces the text within the specified range with the new text.
Replaces the text within the specified range with the new text and applies attributes to the newly inserted text atomically.