# speechkit/4.2.4/src/Component/Post/AddPlayer/index.js

BeyondWords – AI audio for publishers, version 4.2.4. 35 lines.

- Page: https://pluginprobe.com/plugins/speechkit/4.2.4/code/src/Component/Post/AddPlayer/index.js
- Raw: https://pluginprobe.com/plugins/speechkit/4.2.4/raw/src/Component/Post/AddPlayer/index.js
- Modified: 2023-11-15T21:11:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/speechkit/4.2.4/code/src/Component/Post/AddPlayer/index.js#L10-L20`.

```javascript
/**
 * WordPress dependencies
 */
import { registerBlockType } from '@wordpress/blocks';
import { BlockControls, useBlockProps } from '@wordpress/block-editor';

// Register the block
registerBlockType( 'beyondwords/player', {
	edit() {
		const blockProps = useBlockProps( { contentEditable: false } );

		return (
			<div { ...blockProps }>
				<BlockControls />
				<div
					data-beyondwords-player="true"
					contentEditable="false"
				></div>
			</div>
		);
	},
	save() {
		const blockProps = useBlockProps.save( { contentEditable: false } );

		return (
			<div { ...blockProps }>
				<div
					data-beyondwords-player="true"
					contentEditable="false"
				></div>
			</div>
		);
	},
} );

```
