Skip to content

Commit

Permalink
fix: media iframe fix (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juli Ovechkina authored Nov 27, 2023
1 parent 02715ef commit be6c819
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions src/schema/validators/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,20 +576,25 @@ export const ButtonBlock = {
};

const IframeProps = {
src: {
type: 'string',
},
name: {
type: 'string',
},
title: {
type: 'string',
},
height: {
type: 'number',
},
width: {
type: 'number',
type: 'object',
additionalProperties: false,
required: ['src'],
properties: {
src: {
type: 'string',
},
name: {
type: 'string',
},
title: {
type: 'string',
},
height: {
type: 'number',
},
width: {
type: 'number',
},
},
};

Expand Down Expand Up @@ -630,7 +635,7 @@ export const MediaProps = {
...IframeProps,
},
margins: {
type: 'number',
type: 'boolean',
},
};

Expand Down

0 comments on commit be6c819

Please sign in to comment.