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

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0.1
    • None
    • None
    • None

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    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