2 // Override the default template set
3 CKEDITOR.addTemplates( 'default', {
4 // The name of sub folder which hold the shortcut preview images of the
6 imagesPath: '/themes/custom/mytheme/images/ckeditor/',
8 // The templates definitions.
10 title: 'Image and Title module',
11 image: 'template1.gif',
12 description: 'One main image with a title and text that surround the image.',
14 // Use src=" " so image is not filtered out by the editor as incorrect (src is required).
15 '<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
16 'Type the title here' +
19 'Type the text here' +
23 title: 'Strange Template',
24 image: 'template2.gif',
25 description: 'A template that defines two colums, each one with a title, and some text.',
26 html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
28 '<td style="width:50%">' +
32 '<td style="width:50%">' +
47 'More text goes here.' +
51 title: 'Text and Table',
52 image: 'template3.gif',
53 description: 'A title with some text and a table.',
54 html: '<div style="width: 80%">' +
58 '<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
59 '<caption style="border:solid 1px black">' +
60 '<strong>Table title</strong>' +
79 'Type the text here' +