@ckeditor/ckeditor5-table
Version:
Table feature for CKEditor 5.
18 lines (17 loc) • 831 B
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* @module table/converters/table-headings-refresh-handler
*/
import type { EditingController, Model } from 'ckeditor5/src/engine.js';
/**
* A table headings refresh handler which marks the table cells or rows in the differ to have it re-rendered
* if the headings attribute changed.
*
* Table heading rows and heading columns are represented in the model by a `headingRows` and `headingColumns` attributes.
*
* When table headings attribute changes, all the cells/rows are marked to re-render to change between `<td>` and `<th>`.
*/
export default function tableHeadingsRefreshHandler(model: Model, editing: EditingController): void;