Skip to content

Commit

Permalink
Amazon Kindle block (#13510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean authored and notnownikki committed Jan 25, 2019
1 parent 59ebd4f commit a474438
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/block-library/src/embed/core-embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
embedVimeoIcon,
embedRedditIcon,
embedTumbrIcon,
embedAmazonIcon,
} from './icons';

/**
Expand Down Expand Up @@ -338,4 +339,18 @@ export const others = [
},
patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ],
},
{
name: 'core-embed/amazon-kindle',
settings: {
title: 'Amazon Kindle',
icon: embedAmazonIcon,
keywords: [ __( 'ebook' ) ],
responsive: false,
description: __( 'Embed Amazon Kindle content.' ),
},
patterns: [
/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,
/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i,
],
},
];
1 change: 1 addition & 0 deletions packages/block-library/src/embed/icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a474438

Please sign in to comment.