Skip to content

Conversation

@dimaip
Copy link
Contributor

@dimaip dimaip commented Aug 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants