2 Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
6 // Register a templates definition set named "default".
\r
7 CKEDITOR.addTemplates( 'default',
\r
9 // The name of sub folder which hold the shortcut preview images of the
\r
11 imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
\r
13 // The templates definitions.
\r
17 title: 'Image and Title',
\r
18 image: 'template1.gif',
\r
19 description: 'One main image with a title and text that surround the image.',
\r
22 '<img style="margin-right: 10px" height="100" width="100" align="left"/>' +
\r
23 'Type the title here'+
\r
26 'Type the text here' +
\r
30 title: 'Strange Template',
\r
31 image: 'template2.gif',
\r
32 description: 'A template that defines two colums, each one with a title, and some text.',
\r
34 '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
\r
36 '<td style="width:50%">' +
\r
37 '<h3>Title 1</h3>' +
\r
40 '<td style="width:50%">' +
\r
41 '<h3>Title 2</h3>' +
\r
55 'More text goes here.' +
\r
59 title: 'Text and Table',
\r
60 image: 'template3.gif',
\r
61 description: 'A title with some text and a table.',
\r
63 '<div style="width: 80%">' +
\r
67 '<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
\r
68 '<caption style="border:solid 1px black">' +
\r
69 '<strong>Table title</strong>' +
\r
89 'Type the text here' +
\r