PluginProbe
BeyondWords – AI audio for publishers / 6.3.0
BeyondWords – AI audio for publishers v6.3.0
7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.7.0 All 43 releases
speechkit / src / Component / Post / AddPlayer / index.js

index.js in BeyondWords – AI audio for publishers 6.3.0, at src/Component/Post/AddPlayer/index.js

35 lines 729 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 import { registerBlockType } from '@wordpress/blocks';
5 import { BlockControls, useBlockProps } from '@wordpress/block-editor';
6
7 // Register the block
8 registerBlockType( 'beyondwords/player', {
9 edit: function Edit() {
10 const blockProps = useBlockProps( { contentEditable: false } );
11
12 return (
13 <div { ...blockProps }>
14 <BlockControls />
15 <div
16 data-beyondwords-player="true"
17 contentEditable="false"
18 ></div>
19 </div>
20 );
21 },
22 save: function Save() {
23 const blockProps = useBlockProps.save( { contentEditable: false } );
24
25 return (
26 <div { ...blockProps }>
27 <div
28 data-beyondwords-player="true"
29 contentEditable="false"
30 ></div>
31 </div>
32 );
33 },
34 } );
35