Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper
New in 1.17.0

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