Flowpack.StructuredEditing icon indicating copy to clipboard operation
Flowpack.StructuredEditing copied to clipboard

FEATURE: secondary inspector

Open dimaip opened this issue 5 years ago • 0 comments

Heads up! Neos applies default configs to inspector editors. For inline editors we need to do it manually, e.g.

NodeType:
  properties:
    'chapterImage':
      type: 'Neos\Media\Domain\Model\ImageInterface'
      ui:
        label: i18n
        reloadIfChanged: true
        inspector:
          group: 'document'
        help:
          message: 'This image will also appear in the chapter menu.'
        inline:
          editor: 'Flowpack.StructuredEditing/EditorEnvelope'
          editorOptions:
            editor: 'Neos.Neos/Inspector/Editors/ImageEditor'
            icon: icon-picture
            maximumFileSize: null
            features:
              crop: true
              upload: true
              mediaBrowser: true
              resize: false
            crop:
              aspectRatio:
                options:
                  square:
                    width: 1
                    height: 1
                    label: Square
                  fourFive:
                    width: 4
                    height: 5
                  fiveSeven:
                    width: 5
                    height: 7
                  twoThree:
                    width: 2
                    height: 3
                  fourThree:
                    width: 4
                    height: 3
                  sixteenNine:
                    width: 16
                    height: 9
                enableOriginal: true
                allowCustom: true
                locked:
                  width: 0
                  height: 0

dimaip avatar Aug 06 '20 06:08 dimaip