hasStyleChanged
hasStyleChanged(
prevStyle
,thisStyle
,forTextSpans
):boolean
Parameters
• prevStyle: Partial
<CompleteTextStyleDeclaration
>
first style to compare
• thisStyle: Partial
<CompleteTextStyleDeclaration
>
second style to compare
• forTextSpans: boolean
= false
whether to check overline, underline, and line-through properties
Returns
boolean
true if the style changed