--- /dev/null
+/*\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+*/\r
+\r
+// Register a templates definition set named "default".\r
+CKEDITOR.addTemplates( 'default',\r
+{\r
+ // The name of sub folder which hold the shortcut preview images of the\r
+ // templates.\r
+ imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),\r
+\r
+ // The templates definitions.\r
+ templates :\r
+ [\r
+ {\r
+ title: 'Image and Title',\r
+ image: 'template1.gif',\r
+ description: 'One main image with a title and text that surround the image.',\r
+ html:\r
+ '<h3>' +\r
+ '<img style="margin-right: 10px" height="100" width="100" align="left"/>' +\r
+ 'Type the title here'+\r
+ '</h3>' +\r
+ '<p>' +\r
+ 'Type the text here' +\r
+ '</p>'\r
+ },\r
+ {\r
+ title: 'Strange Template',\r
+ image: 'template2.gif',\r
+ description: 'A template that defines two colums, each one with a title, and some text.',\r
+ html:\r
+ '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +\r
+ '<tr>' +\r
+ '<td style="width:50%">' +\r
+ '<h3>Title 1</h3>' +\r
+ '</td>' +\r
+ '<td></td>' +\r
+ '<td style="width:50%">' +\r
+ '<h3>Title 2</h3>' +\r
+ '</td>' +\r
+ '</tr>' +\r
+ '<tr>' +\r
+ '<td>' +\r
+ 'Text 1' +\r
+ '</td>' +\r
+ '<td></td>' +\r
+ '<td>' +\r
+ 'Text 2' +\r
+ '</td>' +\r
+ '</tr>' +\r
+ '</table>' +\r
+ '<p>' +\r
+ 'More text goes here.' +\r
+ '</p>'\r
+ },\r
+ {\r
+ title: 'Text and Table',\r
+ image: 'template3.gif',\r
+ description: 'A title with some text and a table.',\r
+ html:\r
+ '<div style="width: 80%">' +\r
+ '<h3>' +\r
+ 'Title goes here' +\r
+ '</h3>' +\r
+ '<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +\r
+ '<caption style="border:solid 1px black">' +\r
+ '<strong>Table title</strong>' +\r
+ '</caption>' +\r
+ '</tr>' +\r
+ '<tr>' +\r
+ '<td> </td>' +\r
+ '<td> </td>' +\r
+ '<td> </td>' +\r
+ '</tr>' +\r
+ '<tr>' +\r
+ '<td> </td>' +\r
+ '<td> </td>' +\r
+ '<td> </td>' +\r
+ '</tr>' +\r
+ '<tr>' +\r
+ '<td> </td>' +\r
+ '<td> </td>' +\r
+ '<td> </td>' +\r
+ '</tr>' +\r
+ '</table>' +\r
+ '<p>' +\r
+ 'Type the text here' +\r
+ '</p>' +\r
+ '</div>'\r
+ }\r
+ ]\r
+});\r