What is @ckeditor/ckeditor5-table?
@ckeditor/ckeditor5-table is a plugin for CKEditor 5 that provides table editing capabilities. It allows users to create, edit, and manage tables within the CKEditor 5 rich text editor.
What are @ckeditor/ckeditor5-table's main functionalities?
Creating a Table
This code initializes the CKEditor with table creation capabilities. The toolbar includes options to insert a table, add columns, add rows, and merge cells.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Table, TableToolbar ], toolbar: [ 'insertTable', 'tableColumn', 'tableRow', 'mergeTableCells' ] })
Inserting a Table
This code demonstrates how to programmatically insert a 3x3 table into the editor.
editor.execute('insertTable', { rows: 3, columns: 3 })
Adding a Column
This code shows how to add a column to the right of the selected cell in the table.
editor.execute('insertTableColumn', { at: 'right' })
Adding a Row
This code demonstrates how to add a row below the selected cell in the table.
editor.execute('insertTableRow', { at: 'below' })
Merging Cells
This code shows how to merge selected cells in the table.
editor.execute('mergeTableCells')
Other packages similar to @ckeditor/ckeditor5-table
quill-table
quill-table is a module for the Quill rich text editor that provides table editing capabilities. It allows users to create and manage tables within the Quill editor. Compared to @ckeditor/ckeditor5-table, quill-table offers similar functionalities but is designed specifically for the Quill editor.
tinymce
TinyMCE is a rich text editor that includes built-in table editing capabilities. It allows users to create, edit, and manage tables within the editor. TinyMCE provides a comprehensive set of table editing tools, similar to @ckeditor/ckeditor5-table, but is a standalone editor rather than a plugin.
prosemirror-tables
prosemirror-tables is a plugin for the ProseMirror editor that provides table editing functionalities. It allows users to create and manage tables within the ProseMirror editor. Compared to @ckeditor/ckeditor5-table, prosemirror-tables offers similar features but is designed for use with the ProseMirror editor.
CKEditor 5 table feature
This package implements text table support for CKEditor 5.
Documentation
See the @ckeditor/ckeditor5-table
package page in CKEditor 5 documentation.
License
Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the LICENSE.md
file.