# tablepress/2.2.2/blocks/table/src/index.js

TablePress – Tables in WordPress made easy, version 2.2.2. 37 lines.

- Page: https://pluginprobe.com/plugins/tablepress/2.2.2/code/blocks/table/src/index.js
- Raw: https://pluginprobe.com/plugins/tablepress/2.2.2/raw/blocks/table/src/index.js
- Modified: 2022-12-19T11:32:06+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/tablepress/2.2.2/code/blocks/table/src/index.js#L10-L20`.

```javascript
/**
 * JavaScript code for the TablePress table block in the block editor.
 *
 * @package TablePress
 * @subpackage Blocks
 * @author Tobias Bäthge
 * @since 2.0.0
 */

/**
 * WordPress dependencies.
 */
import { registerBlockType } from '@wordpress/blocks';

/**
 * Internal dependencies.
 */
import transforms from './transforms';
import edit from './edit';
import save from './save';
import example from './example';

/**
 * Get the block name from the block.json.
 */
import block from '../block.json';

/**
 * Register the block.
 */
registerBlockType( block.name, {
	transforms,
	edit,
	save,
	example,
} );

```
