Typedef

TemplateDefinition (template)

@ckeditor/ckeditor5-template/src/template

typedefobject

An object describing a single template definition.

{
// Mandatory fields:
	title: 'Example template',
	data: '<table><tr><td>Cell #1</td><td></td></tr><tr><td></td><td>Cell #2</td></tr></table>',

	// Optional configuration:
	icon: '<svg viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg">...</svg>',
	description: 'This template inserts a table.'
}

Filtering

Properties

  • data : () => string | string

  • description : string | undefined

  • icon : string | undefined

  • title : string