Module

table/converters/table-cell-refresh-post-fixer

@ckeditor/ckeditor5-table/src/converters/table-cell-refresh-post-fixer

module

Filtering

Functions

  • injectTableCellRefreshPostFixer( model )

    static

    Injects a table cell post-fixer into the model which marks the table cell in the differ to have it re-rendered.

    Model paragraph inside a table cell can be rendered as <span> or <p>. It is rendered as <span> if this is the only block element in that table cell and it doesn't have any attributes. It is rendered as <p> otherwise.

    When table cell content changes, for example a second paragraph element is added we need to ensure that the first paragraph is re-rendered so it changes to <p> from <span>. The easiest way to do it is to re-render whole table cell.

    Parameters

    model : Model