Sign up (with export icon)

TableCaptionConfig

Api-interface icon interface

The configuration of the table caption feature.

Properties

  • Chevron-right icon

    useCaptionElement : boolean | undefined

    Sets the preferred HTML structure for table captions.

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

    <figure class="table">
    	<table>
    		<tbody> ... </tbody>
    	</table>
    	<figcaption> ... </figcaption>
    </figure>
    
    Copy code

    When this option is true the structure is like this:

    <figure class="table">
    	<table>
    		<tbody> ... </tbody>
    		<caption> ... </caption>
    	</table>
    </figure>
    
    Copy code
    ClassicEditor
    	.create( {
    		table: {
    			tableCaption: {
    				useCaptionElement: true
    			}
    		}
    	} )
    	.then( ... )
    	.catch( ... );
    
    Copy code