# table/converters/upcasttable

module

<a id="functions">

## Functions

<a id="function-ensureParagraphInTableCell">

### `ensureParagraphInTableCell( elementName ) → ( dispatcher: UpcastDispatcher ) => void` _(internal)_

A converter that ensures an empty paragraph is inserted in a table cell if no other content was converted.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/upcasttable.ts#L178)

#### Parameters

* `elementName: string`

#### Returns

* `( dispatcher: UpcastDispatcher ) => void`

  Conversion helper.

<a id="function-skipEmptyTableRow">

### `skipEmptyTableRow() → ( dispatcher: UpcastDispatcher ) => void` _(internal)_

A conversion helper that skips empty elements from upcasting at the beginning of the table.

An empty row is considered a table model error but when handling clipboard data there could be rows that contain only row-spanned cells and empty TR-s are used to maintain the table structure (also [`TableWalker`](module_table_tablewalker-TableWalker.md) assumes that there are only rows that have related `tableRow` elements).

_Note:_ Only the first empty rows are removed because they have no meaning and it solves the issue of an improper table with all empty rows.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/upcasttable.ts#L162)

#### Returns

* `( dispatcher: UpcastDispatcher ) => void`

  Conversion helper.

<a id="function-upcastTable">

### `upcastTable( options = { options.enableFooters? } ) → ( dispatcher: UpcastDispatcher ) => void` _(internal)_

View table element to model table element conversion helper.

This conversion helper converts the table element as well as table rows.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/upcasttable.ts#L95)

#### Parameters

* `options: object`

  Conversion options.

  Properties

  * `options.enableFooters?: boolean`

    If set to `true` the `footerRows` attribute will be upcasted.

#### Returns

* `( dispatcher: UpcastDispatcher ) => void`

  Conversion helper.

<a id="function-upcastTableFigure">

### `upcastTableFigure() → ( dispatcher: UpcastDispatcher ) => void` _(internal)_

Returns a function that converts the table view representation:

```xml
<figure class="table"><table>...</table></figure>
```

to the model representation:

```xml
<table></table>
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/converters/upcasttable.ts#L31)

#### Returns

* `( dispatcher: UpcastDispatcher ) => void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
