The strapi-table plugin enhances your Strapi administration panel by providing advanced table functionalities, potentially including rich text editing capabilities for table cells. This plugin aims to offer a more robust and flexible way to manage tabular data within your Strapi content types.
- Enhanced Table Management: Provides a more powerful interface for creating and managing tables.
- Rich Text Editing: Integrates
react-quill-newfor rich text editing within table cells, allowing for formatted content. - Content Sanitization: Utilizes
sanitize-htmlto ensure that rich text content is safe and free from malicious scripts. - State Management: Leverages
zustandfor efficient and scalable state management within the plugin's UI.
To install the strapi-table plugin, follow these steps:
-
Install the package:
npm install strapi-table # or yarn add strapi-table -
Enable the plugin: Add the following to
./config/plugins.ts(create the file if it doesn't exist):{ table: { enabled: true, resolve: '@mish.dev/strapi-table', }, };
-
Build your Strapi admin panel:
npm run build # or yarn build -
Start your Strapi application:
npm run develop # or yarn develop -
Usage in field Strapi
"data": { "type": "customField", "customField": "plugin::strapi-table.StrapiTable", "required": true }
Once installed and enabled, the Strapi Table plugin should appear in your Strapi admin panel. You can then integrate its functionalities into your content types.
- Row Selection: Clicking on a cell with a number will select the entire row.
Backspace: Clears all content within the selected row.Delete: Deletes the entire selected row.
- Insert from External Sources: Click on the intersection of the header and rows (top-left corner) to select the entire table. This allows you to paste data from external sources, such as Google Sheets.
- Image Insertion: If the rich text editor within table cells supports it, you can insert images directly into the cells.
We welcome contributions to the strapi-table plugin! If you have suggestions, bug reports, or want to contribute code, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Hwaiteu benner.andrey.loon@gmail.com


