• Scrivito CMS
    • Overview
    • For the Enterprise
    • For Marketing
    • For Editors
    • For Developers
    • Technology
    • Integrations
    • Pricing
  • Resources
    • Blog (justrelate.com)
    • News and Release Notes
    • Product Sheet (PDF)
    • Widgets
  • Solutions
  • Developers
    • Documentation Overview
    • Editor’s Guide
    • Admin’s Guide
    • Quickstart Guides
    • Extending the Example App (Basic)
    • Extending the Example App (Advanced)
    • Key Concepts
    • Integrations
    • Web Development Guides
    • Advanced Use Cases
    • Going Live
    • JavaScript SDK API
    • News and Release Notes
    • Contact Customer Support
  • Partners
    • Scrivito CMS for Partner Agencies
    • Partners
    • Become a Partner
  • Sign up
  • My Scrivito
  • EN
    EnglishDeutsch
  • Developers
  • JavaScript SDK API
  • Top-Level API
  • currentEditor()

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:

  • Documentation Overview
  • Editor’s Guide
  • Admin’s Guide
  • Quickstart Guides
  • Extending the Example App (Basic)
  • Extending the Example App (Advanced)
  • Key Concepts
  • Integrations
  • Web Development Guides
  • Advanced Use Cases
  • Going Live
  • JS SDK API
    • Top-Level API
    • Custom Attribute Types
    • Obj
    • Widget
    • Binary
    • FutureBinary
    • Link
    • Editor
    • Team
    • MetadataCollection
    • ObjSearch
    • ObjFacetValue
    • SiteContext
    • Workspace
    • DataLocator
    • DataScope
    • React Components
    • React Hooks
    • Errors
    • Content not yet Loaded Error
  • News and Release Notes
  • Contact Customer Support
  • canEdit
  • canWrite
  • configure
  • configureContentBrowser
  • configureObjClassForContentType
  • configurePreviewSizes
  • connect
  • createObjClass
  • createWidgetClass
  • currentEditor
  • currentPage
  • currentPageParams
  • currentSiteId
  • currentWorkspace
  • currentWorkspaceId
  • editorLanguage
  • extendMenu
  • extractText
  • finishLoading
  • getClass
  • isComparisonActive
  • isCurrentPage
  • isEditorLoggedIn
  • isInPlaceEditingActive
  • isOnCurrentPath
  • load
  • navigateTo
  • objsFromDataLocator
  • openDialog
  • preload
  • provideAuthGroups
  • provideComponent
  • provideDataItem
  • provideEditingConfig
  • provideLayoutComponent
  • provideObjClass
  • provideWidgetClass
  • registerComponent
  • renderPage
  • resolveHtmlUrls
  • setVisitorIdToken
  • uiContext
  • updateContent
  • updateMenuExtensions
  • urlFor
  • useHistory
  • validationResultsFor
Scrivito CMS
  • Overview
  • For the Enterprise
  • For Marketing
  • For Editors
  • For Developers
  • Technology
  • Integrations
  • Solutions
  • Pricing
Resources
  • News and Release Notes
  • Product Sheet (PDF)
  • Blog (justrelate.com)
Partner
  • Scrivito CMS for Partner Agencies
  • Project Partners
  • Become a Partner
Support
  • Contact Support
  • Documentation
  • Widget Marketplace
  • Dashboard Login
  • Service Status
JustRelate Group
  • About Us
  • Customers
  • Imprint
  • Privacy Policy
  • Transparent Information
  • Terms of Service
  • Contact Us

© 2023 – All rights reserved

Scrivito is proudly made by the JustRelate Group in Berlin, Germany, and Wrocław, Poland.