currentEditor()

Returns the current editor.

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

Additionally, [New in 1.38.0] the URL of the editor’s picture is returned.

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: