2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
6 // Register a templates definition set named "default".
7 CKEDITOR.addTemplates( 'default', {
8 // The name of sub folder which hold the shortcut preview images of the
10 imagesPath: CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
12 // The templates definitions.
14 title: 'Image and Title',
15 image: 'template1.gif',
16 description: 'One main image with a title and text that surround the image.',
18 // Use src=" " so image is not filtered out by the editor as incorrect (src is required).
19 '<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
20 'Type the title here' +
23 'Type the text here' +
27 title: 'Strange Template',
28 image: 'template2.gif',
29 description: 'A template that defines two columns, each one with a title, and some text.',
30 html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
32 '<td style="width:50%">' +
36 '<td style="width:50%">' +
51 'More text goes here.' +
55 title: 'Text and Table',
56 image: 'template3.gif',
57 description: 'A title with some text and a table.',
58 html: '<div style="width: 80%">' +
62 '<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
63 '<caption style="border:solid 1px black">' +
64 '<strong>Table title</strong>' +
83 'Type the text here' +