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

EditableArea is rendering a mgnlEditorBar at noComponent Area

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • None
    • 1.0.4
    • None

      The react-editor is rendering a mgnlEditorBar at noComponent area.
      Validate angular as well.

      Reproduction:

      • Create an area dialogue with a multi-value field 
        form:
          properties:
            logo:
              $type: linkField
              chooser:
                workbenchChooser:
                  appName: dam-chooser
            metaNavigation:
              $type: jcrMultiField
              itemProvider:
                $type: jcrChildNodeProvider
              field:
                $type: compositeField
                properties:
                  label:
                    $type: textField
                    required: true
                  href:
                    !include:/test-core/includes/fields/extendedLinkField.yaml
                    required: true
      • add multiple links
      • the frontend is rendering a mgnlEditorBar at the multi-value node

       

       

      Expected:

      • "<!--cms:component content="website:/demo-content/header/metaNavigation" label="" description="" activationStatus="0"–>" should only be rendered for mgnl:component nodes.
      • A solution could be, the EditableArea skip rendering the components if the type is noComponent 
        areas:
          header:
            title: Header Area
            dialog: test-core:areas/header
            editable: false
            type: noComponent
            inheritance:
              components: all
              enabled: true
              properties: all
        

        Acceptance criteria

              Unassigned Unassigned
              viet.nguyen Viet Nguyen
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD