File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import { registerDependencies } from 'mjml-validator'
44import { BodyComponent } from 'mjml-core'
55registerDependencies ( {
66 'mj-image-text' : [ ] ,
7- 'mj-section' : [ 'mj-image-text' ]
7+ 'mj-body' : [ 'mj-image-text' ] ,
8+ 'mj-wrapper' : [ 'mj-image-text' ] ,
89} )
910
1011export default class MjImageText extends BodyComponent {
Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ registerDependencies({
1717 'mj-text' ,
1818 'mj-navbar'
1919 ] ,
20- // Now tell the validator which tag sare allowed as our component's parent
21- 'mj-wrapper' : [ 'mj-layout' ]
20+ // Now tell the validator which tags are allowed as our component's parent
21+ 'mj-wrapper' : [ 'mj-layout' ] ,
22+ 'mj-body' : [ 'mj-layout' ] ,
2223} )
2324
2425/*
You can’t perform that action at this time.
0 commit comments