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.
44.1.0 (December 16, 2024)
We are pleased to announce the latest CKEditor 5 release, focusing on performance enhancements and key bug fixes to improve your editing and collaboration experience.
Release Highlights
⚡ Performance enhancements: Part 3
This release introduces another set of performance related improvements, focused on faster editor initialization for huge documents. The initialization time was lowered by further 15% to 45%, depending on the tested sample.
The combined improvements introduced in recent releases amount to around 65%-80% lower loading time in total, which means the editor will load 3-5x faster. As the gain is not linear, bigger documents see even better improvement (more than 10x faster).
Moreover, all these improvements positively impact document save time (editor.getData()
), which should help with autosave issues, among others.
We still actively work in this area, so you may expect even more editor load and save efficiency improvements in the upcoming releases.
🔨 Bug Fixes and improvements
- Comments enhancements:
- Data export options: We introduced the
showCommentHighlights
option in editor.getData()
, that changes the comment marker conversion, allowing for styling comments in the output. Perfect for showing what was commented in Export to PDF, for example. - Inline mode improvements: We addressed a problem where comment annotations in inline mode did not close properly when clicking elsewhere in the content.
- Thread management: We resolved an issue where creating a new thread was not interrupted when the corresponding marker was removed from the content, ensuring better stability during collaborative editing.
- Revision History update:
- Restore functionality: We disabled the ability to restore the current (edited, not saved) revision, as it represents current content, so there is nothing to restore. At the same time, using it led to some non-obvious behaviors.
- Image handling: We resolved an issue where images in the uploading state could be deleted when dragged and dropped within the editor. Keep dragging, even when it is not there 🙈.
🎄 Happy holidays!
As the holiday season approaches, we extend our warmest wishes to our community and users. Thank you for your continued support, and we look forward to bringing you further enhancements and exciting features in the coming year.