Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for inner-background-color and inner-border-radius #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lechuhuuha
Copy link

Hi i want to add support for the attribute inner-background-color and inner-border-radius for mj-column component

Now editor able to create this

image

@artf or @DRoet can check it?

@@ -111,7 +113,7 @@ export default (editor: grapesjs.Editor, { opt, coreMjmlModel, coreMjmlView, san
},

getChildrenSelector() {
return 'table';
return 'table > tbody > tr > td > table';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to break the Column component

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes in order to inner background to work i need adjust the getChildrenSelector()
and i had check even with this change the background color will work as normal.
If you need i can provide the mjml code you need to compare
Thanks

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just trying to load the default template and this is what I see
Screenshot 2023-06-21 at 11 31 19

that means the output returned from mjml compiler doesn't match your new selector

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.

None yet

2 participants