1 | export default {
|
2 | 't a l e s o f g u t e n b e r g': ( event ) => {
|
3 | if (
|
4 | ! document.activeElement.classList.contains( 'edit-post-visual-editor' ) &&
|
5 | document.activeElement !== document.body
|
6 | ) {
|
7 | return;
|
8 | }
|
9 |
|
10 | event.preventDefault();
|
11 | window.wp.data.dispatch( 'core/block-editor' ).insertBlock(
|
12 | window.wp.blocks.createBlock( 'core/paragraph', {
|
13 | content: '🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️',
|
14 | } )
|
15 | );
|
16 | },
|
17 | };
|