# TableCaptionConfig

interface

The configuration of the table caption feature.

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

<a id="properties">

## Properties

<a id="member-useCaptionElement">

### `useCaptionElement?: boolean`

Sets the preferred HTML structure for table captions.

When this option is `false` (the default) the structure is like this:

```html
<figure class="table">
	<table>
		<tbody> ... </tbody>
	</table>
	<figcaption> ... </figcaption>
</figure>
```

When this option is `true` the structure is like this:

```html
<figure class="table">
	<table>
		<tbody> ... </tbody>
		<caption> ... </caption>
	</table>
</figure>
```

```typescript
ClassicEditor
	.create( {
		table: {
			tableCaption: {
				useCaptionElement: true
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

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

---

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