Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To find out whether your SPA page is running in the page editor or in its page preview mode, inject

  • either the EditorContextService from

...

  • the @magnolia/angular-editor or,
  • the EditorContextHelper from the @magnolia/react-editor,

depending on which framework you are using, Angular or ReactJS. respectively. You can then call the following functions to get the status:

...