currentEditor()

Returns the current editor.

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

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

Returns

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

Remarks

Returns null while loading.

See also

Team

Example

In the console, render the current editor’s name as well as the names of the teams she or he is a member of: