feat(editor-preview): allow to disable editor preview for all collections (#4423)

This commit is contained in:
Giacomo Lombardi
2020-10-12 11:59:03 +02:00
committed by GitHub
parent 39a487482c
commit 16399719a0
4 changed files with 40 additions and 0 deletions

View File

@ -284,6 +284,12 @@ const getConfigSchema = () => ({
},
uniqueItemProperties: ['name'],
},
editor: {
type: 'object',
properties: {
preview: { type: 'boolean' },
},
},
},
required: ['backend', 'collections'],
anyOf: [{ required: ['media_folder'] }, { required: ['media_library'] }],