Skip to content

Commit

Permalink
Merge pull request #84 from mailchimp/enhancement/shortcode-conversio…
Browse files Browse the repository at this point in the history
…n-to-block

Enhancement/shortcode conversion to block
  • Loading branch information
vikrampm1 authored Jan 28, 2025
2 parents 0b93ec3 + 7828cc0 commit e8ea31f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions includes/blocks/mailchimp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ import Icon from './icon';

registerBlockType(metadata, {
icon: Icon,
transforms: {
from: [
{
type: 'shortcode',
tag: 'mailchimpsf_form',
attributes: {
// No attributes, but attributes property is required
},
},
],
},
edit: BlockEdit,
save: () => null,
});

0 comments on commit e8ea31f

Please sign in to comment.