Changes the content element attributes used for the given range of
existing content in the document. All of the attributes
defined in the given Attributes argument are applied to the
given range. This method can be used to completely remove
all content level attributes for the given range by
giving an Attributes argument that has no attributes defined
and setting replace to true.
Parameters:
-
offset - the start of the change >= 0
-
length - the length of the change >= 0
-
s - the non-null attributes to change to. Any attributes
defined will be applied to the text for the given range.
-
replace - indicates whether or not the previous
attributes should be cleared before the new attributes
as set. If true, the operation will replace the
previous attributes entirely. If false, the new
attributes will be merged with the previous attributes.