Skip to content

Commit be6c819

Browse files
author
Juli Ovechkina
authored
fix: media iframe fix (#717)
1 parent 02715ef commit be6c819

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

src/schema/validators/common.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -576,20 +576,25 @@ export const ButtonBlock = {
576576
};
577577

578578
const IframeProps = {
579-
src: {
580-
type: 'string',
581-
},
582-
name: {
583-
type: 'string',
584-
},
585-
title: {
586-
type: 'string',
587-
},
588-
height: {
589-
type: 'number',
590-
},
591-
width: {
592-
type: 'number',
579+
type: 'object',
580+
additionalProperties: false,
581+
required: ['src'],
582+
properties: {
583+
src: {
584+
type: 'string',
585+
},
586+
name: {
587+
type: 'string',
588+
},
589+
title: {
590+
type: 'string',
591+
},
592+
height: {
593+
type: 'number',
594+
},
595+
width: {
596+
type: 'number',
597+
},
593598
},
594599
};
595600

@@ -630,7 +635,7 @@ export const MediaProps = {
630635
...IframeProps,
631636
},
632637
margins: {
633-
type: 'number',
638+
type: 'boolean',
634639
},
635640
};
636641

0 commit comments

Comments
 (0)