JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0
[ckeditor.git] / _source / plugins / templates / templates / default.js
diff --git a/_source/plugins/templates/templates/default.js b/_source/plugins/templates/templates/default.js
new file mode 100644 (file)
index 0000000..704cafa
--- /dev/null
@@ -0,0 +1,94 @@
+/*\r
+Copyright (c) 2003-2009, 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" alt="" 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" width="100%" border="0">' +\r
+                                               '<tr>' +\r
+                                                       '<td width="50%">' +\r
+                                                               '<h3>Title 1</h3>' +\r
+                                                       '</td>' +\r
+                                                       '<td></td>' +\r
+                                                       '<td 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="float: right" cellspacing="0" cellpadding="0" width="150" border="1">' +\r
+                                                       '<caption style="border:solid 1px black">' +\r
+                                                               '<strong>Table title</strong>' +\r
+                                                       '</caption>' +\r
+                                                       '</tr>' +\r
+                                                       '<tr>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                       '</tr>' +\r
+                                                       '<tr>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                       '</tr>' +\r
+                                                       '<tr>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                               '<td>&nbsp;</td>' +\r
+                                                       '</tr>' +\r
+                                               '</table>' +\r
+                                               '<p>' +\r
+                                                       'Type the text here' +\r
+                                               '</p>' +\r
+                                       '</div>'\r
+                       }\r
+               ]\r
+});\r