UNPKG

891 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module table/converters/table-cell-paragraph-post-fixer
7 */
8import type { Model } from 'ckeditor5/src/engine';
9/**
10 * Injects a table cell post-fixer into the model which inserts a `paragraph` element into empty table cells.
11 *
12 * A table cell must contain at least one block element as a child. An empty table cell will have an empty `paragraph` as a child.
13 *
14 * ```xml
15 * <table>
16 * <tableRow>
17 * <tableCell></tableCell>
18 * </tableRow>
19 * </table>
20 * ```
21 *
22 * Will be fixed to:
23 *
24 * ```xml
25 * <table>
26 * <tableRow>
27 * <tableCell><paragraph></paragraph></tableCell>
28 * </tableRow>
29 * </table>
30 * ```
31 */
32export default function injectTableCellParagraphPostFixer(model: Model): void;