Unlike Scrivito.isInPlaceEditingActive which only reflects the global editing state, this hook is context-aware: Its result also depends on the editable area and on whether editing has been switched off for the surrounding components via Scrivito.InPlaceEditingOff (or forced on as page content via Scrivito.InPlaceEditAsPageContent). It must be called from within a Scrivito component (page, widget, or layout component).