/csv-table-block

CSV to Table Block for Wordpress Guttenberg

Primary LanguageJavaScript

CSV Table Block Plugin

A Gutenberg block plugin for importing and displaying CSV data as a table.

Description

The CSV Table Block Plugin allows you to easily import CSV files and display the data as a table in the WordPress Gutenberg editor. This can be useful for presenting tabular data in a visually appealing way without the need for manual formatting.

Features

  • Import CSV files and generate an HTML table.
  • Supports any number of columns and rows.
  • Automatically converts URLs in the CSV data to clickable links.
  • Link URLs open in a new tab for better user experience.
  • Customizable table styling with the is-style-stripes class.

Usage

  1. Install and activate the plugin.
  2. In the Gutenberg editor, add a new block and search for "CSV Table Block".
  3. Click the "Import CSV" button to select a CSV file.
  4. The CSV data will be converted into an HTML table and displayed in the editor.

Block Tag

The block tag for this plugin is:

[csv-table-block]

Use this tag in the Gutenberg editor or in your WordPress theme files to display the CSV Table Block.

Installation

  1. Download the plugin zip file.
  2. Go to the WordPress admin dashboard and navigate to "Plugins" -> "Add New".
  3. Click the "Upload Plugin" button and choose the downloaded zip file.
  4. Activate the plugin.

Screenshots

CSV Table Block CSV Table Block CSV Table Block CSV Table Block

Support

For any issues or feature requests, please open an issue on the GitHub repository.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow the guidelines in CONTRIBUTING.md.

License

This project is licensed under the MIT License.