Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-table

Package Overview
Dependencies
Maintainers
1
Versions
685
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-table

Table feature for CKEditor 5.

  • 41.4.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
396K
decreased by-14.14%
Maintainers
1
Weekly downloads
 
Created

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

Keywords

FAQs

Package last updated on 18 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc