|
| 1 | +/* eslint-disable no-undef */ |
1 | 2 | // Declare the blocks you'd like to style. |
2 | | -// eslint-disable-next-line |
3 | 3 | wp.blocks.registerBlockStyle('core/paragraph', { |
4 | 4 | name: 'boxed', |
5 | 5 | label: 'Laatikko', |
6 | 6 | }); |
7 | 7 |
|
| 8 | +// Deregister some unused embed blocks |
| 9 | +wp.domReady(() => { |
| 10 | + wp.blocks.unregisterBlockVariation('core/embed', 'amazon-kindle'); |
| 11 | + wp.blocks.unregisterBlockVariation('core/embed', 'bluesky'); |
| 12 | + wp.blocks.unregisterBlockVariation('core/embed', 'pinterest'); |
| 13 | + wp.blocks.unregisterBlockVariation('core/embed', 'crowdsignal'); |
| 14 | + wp.blocks.unregisterBlockVariation('core/embed', 'soundcloud'); |
| 15 | + wp.blocks.unregisterBlockVariation('core/embed', 'twitter'); |
| 16 | + wp.blocks.unregisterBlockVariation('core/embed', 'wordpress'); |
| 17 | + wp.blocks.unregisterBlockVariation('core/embed', 'spotify'); |
| 18 | + wp.blocks.unregisterBlockVariation('core/embed', 'flickr'); |
| 19 | + wp.blocks.unregisterBlockVariation('core/embed', 'animoto'); |
| 20 | + wp.blocks.unregisterBlockVariation('core/embed', 'cloudup'); |
| 21 | + wp.blocks.unregisterBlockVariation('core/embed', 'vimeo'); |
| 22 | + wp.blocks.unregisterBlockVariation('core/embed', 'youtube'); |
| 23 | + wp.blocks.unregisterBlockVariation('core/embed', 'dailymotion'); |
| 24 | + wp.blocks.unregisterBlockVariation('core/embed', 'imgur'); |
| 25 | + wp.blocks.unregisterBlockVariation('core/embed', 'issuu'); |
| 26 | + wp.blocks.unregisterBlockVariation('core/embed', 'kickstarter'); |
| 27 | + wp.blocks.unregisterBlockVariation('core/embed', 'mixcloud'); |
| 28 | + wp.blocks.unregisterBlockVariation('core/embed', 'pocket-casts'); |
| 29 | + wp.blocks.unregisterBlockVariation('core/embed', 'reddit'); |
| 30 | + wp.blocks.unregisterBlockVariation('core/embed', 'reverbnation'); |
| 31 | + wp.blocks.unregisterBlockVariation('core/embed', 'screencast'); |
| 32 | + wp.blocks.unregisterBlockVariation('core/embed', 'scribd'); |
| 33 | + wp.blocks.unregisterBlockVariation('core/embed', 'smugmug'); |
| 34 | + wp.blocks.unregisterBlockVariation('core/embed', 'speaker-deck'); |
| 35 | + wp.blocks.unregisterBlockVariation('core/embed', 'tumblr'); |
| 36 | + wp.blocks.unregisterBlockVariation('core/embed', 'tiktok'); |
| 37 | + wp.blocks.unregisterBlockVariation('core/embed', 'ted'); |
| 38 | + wp.blocks.unregisterBlockVariation('core/embed', 'videopress'); |
| 39 | + wp.blocks.unregisterBlockVariation('core/embed', 'wolfram-cloud'); |
| 40 | + wp.blocks.unregisterBlockVariation('core/embed', 'wordpress-tv'); |
| 41 | + wp.blocks.unregisterBlockVariation('core/embed', 'facebook'); |
| 42 | +}); |
| 43 | + |
8 | 44 | // When document is ready as in when blocks are fully loaded |
9 | 45 | window.addEventListener('load', () => { |
10 | 46 | /** |
|
0 commit comments