# speechkit/7.0.0/src/editor/components/add-player/tinymce.js

BeyondWords – AI audio for publishers, version 7.0.0. 21 lines.

- Page: https://pluginprobe.com/plugins/speechkit/7.0.0/code/src/editor/components/add-player/tinymce.js
- Raw: https://pluginprobe.com/plugins/speechkit/7.0.0/raw/src/editor/components/add-player/tinymce.js
- Modified: 2026-08-12T09:46:22+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/7.0.0/code/src/editor/components/add-player/tinymce.js#L10-L20`.

```javascript
/* global tinymce */

( function () {
	tinymce.PluginManager.add( 'beyondwords_player', function ( editor, url ) {
		editor.addCommand( 'beyondwords_insert_player', function () {
			const playerElement =
				'<div data-beyondwords-player="true" contenteditable="false"></div>\uFEFF';

			editor.execCommand( 'mceInsertContent', false, playerElement );
		} );

		const image = url + '/tinymce-button.png';

		editor.addButton( 'beyondwords_player', {
			title: 'Insert BeyondWords player',
			cmd: 'beyondwords_insert_player',
			image,
		} );
	} );
} )();

```
