Iframe.js
7 years ago
core-embeds.js
7 years ago
embed-controls.js
6 years ago
embed-loading.js
7 years ago
embed-placeholder.js
6 years ago
icons.js
5 years ago
core-embeds.js
26 lines
| 1 | /** |
| 2 | * Internal dependencies |
| 3 | */ |
| 4 | import { embedGoogleDocsIcon } from './icons'; |
| 5 | /** |
| 6 | * WordPress dependencies |
| 7 | */ |
| 8 | const { __ } = wp.i18n; |
| 9 | |
| 10 | export const common = [ |
| 11 | { |
| 12 | name: 'embedpress-blocks/google', |
| 13 | settings: { |
| 14 | title: 'Google Docs', |
| 15 | icon: embedGoogleDocsIcon, |
| 16 | keywords: [ 'google' , 'docs' ], |
| 17 | description: __( 'Embed a google document.' ), |
| 18 | }, |
| 19 | patterns: [ /^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)\/. +/i ] |
| 20 | }, |
| 21 | ]; |
| 22 | |
| 23 | export const others = [ |
| 24 | |
| 25 | ]; |
| 26 |