# table-builder-block/2.2.10/includes/Elementor/TablekitElementorEditor.php

TableKit – WordPress Table Builder for Data Tables, WooCommerce Product Tables &amp; Post Tables, version 2.2.10. 67 lines.

- Page: https://pluginprobe.com/plugins/table-builder-block/2.2.10/code/includes/Elementor/TablekitElementorEditor.php
- Raw: https://pluginprobe.com/plugins/table-builder-block/2.2.10/raw/includes/Elementor/TablekitElementorEditor.php
- Modified: 2026-08-05T10:23:42+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/table-builder-block/2.2.10/code/includes/Elementor/TablekitElementorEditor.php#L10-L20`.

```php
<?php
/**
 * Elementor editor assets for TableKit
 *
 * @package TableKit
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Enqueues TableKit's editor-only styles/scripts within the Elementor editor.
 */
class TableKit_Elementor_Editor {

	/**
	 * Hooks editor asset enqueueing into the Elementor editor lifecycle.
	 *
	 * @return void
	 */
	public static function register(): void {
		add_action( 'elementor/editor/after_enqueue_styles', array( __CLASS__, 'enqueue_editor_styles' ) );
		add_action( 'elementor/editor/after_enqueue_scripts', array( __CLASS__, 'enqueue_editor_scripts' ) );
	}

	/**
	 * Enqueues TableKit's stylesheet for the Elementor editor screen.
	 *
	 * @return void
	 */
	public static function enqueue_editor_styles(): void {
		wp_enqueue_style(
			'tablekit-elementor-editor',
			TABLE_BUILDER_BLOCK_PLUGIN_URL . 'assets/css/elementor-editor.css',
			array(),
			TABLE_BUILDER_BLOCK_PLUGIN_VERSION
		);
	}

	/**
	 * Enqueues the Elementor-editor block-picker script and localizes its data.
	 *
	 * @return void
	 */
	public static function enqueue_editor_scripts(): void {
		wp_enqueue_script(
			'tablekit-editor-block-picker',
			TABLE_BUILDER_BLOCK_PLUGIN_URL . 'assets/js/elementor-editor-block-picker.js',
			array( 'elementor-editor', 'jquery' ),
			TABLE_BUILDER_BLOCK_PLUGIN_VERSION,
			true
		);

		wp_localize_script(
			'tablekit-editor-block-picker',
			'tablekitEditorData',
			array(
				'restUrl'  => rest_url( 'tablekit/v1/table-blocks' ),
				'nonce'    => wp_create_nonce( 'wp_rest' ),
				'allLabel' => __( '— All Blocks —', 'table-builder-block' ),
				'loading'  => __( 'Loading blocks…', 'table-builder-block' ),
			)
		);
	}
}

```
