Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-31

In React library, cannot get inEditor, inEditorPreview outside a page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.0.1
    • None
    • None
    • None
    • 6.2.1 Ramp-up 21
    • 2

      In the angular-editor library, it is straightforward to get the inEditor and inEditorPreview statuses via a fiunction call.

      In the react-editor library it is not available from the hosting app. Please change the react-editor library to make this a simple function call as in the angular library.

      Workaround - reimplemnt the window and mgnlRefresh checking in your own app.

      Reason

      Apps need to know if they are running in the context of the Page editor BEFORE they instantiate a <Page> component - because they need to decide whether to load the tempalateDefinition REST endpoint or not.

        Acceptance criteria

              canh.nguyen Canh Nguyen
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 2d 7h 25m Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - 2d 7h 25m Remaining Estimate - 5m
                  2d 7h 25m