Test your website performance for free
Test your website performance

currentEditor()

Returns the current editor.

Scrivito.currentEditor returns the logged-in editor with their ID, name and the teams they belong to.

Returns

An Editor instance if the user interface is present, otherwise null.

Remarks

Returns null while loading.

Example

Render the number of teams the current editor is a member of: