UNPKG

820 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-caption-post-fixer
7 */
8import type { Model } from 'ckeditor5/src/engine';
9/**
10 * Injects a table caption post-fixer into the model.
11 *
12 * The role of the table caption post-fixer is to ensure that the table with caption have the correct structure
13 * after a {@link module:engine/model/model~Model#change `change()`} block was executed.
14 *
15 * The correct structure means that:
16 *
17 * * If there are many caption model element, they are merged into one model.
18 * * A final, merged caption model is placed at the end of the table.
19 */
20export default function injectTableCaptionPostFixer(model: Model): void;