Learn how Scrivito CMS can help you deliver amazing digital experiences
See Scrivito CMS in action

isComparisonActive()

Indicates whether the Scrivito UI is currently displaying a comparison between content versions, e.g. in the “Changes” view mode.

This method can be useful for covering special rendering tasks in Scrivito’s editing UI. In everyday situations, this method is not required for rendering content comparisons as the UI does this automatically in “Changes” mode.

if (Scrivito.isComparisonActive()) { return <span>Changes mode is active.</span>; }

Params

none

Returns

Boolean – true if the Scrivito UI displays a comparison between content versions.

See also

isInPlaceEditingActive