diff options
Diffstat (limited to 'sources/plugins/templates/templates')
-rw-r--r-- | sources/plugins/templates/templates/default.js | 87 | ||||
-rw-r--r-- | sources/plugins/templates/templates/images/template1.gif | bin | 0 -> 375 bytes | |||
-rw-r--r-- | sources/plugins/templates/templates/images/template2.gif | bin | 0 -> 333 bytes | |||
-rw-r--r-- | sources/plugins/templates/templates/images/template3.gif | bin | 0 -> 422 bytes |
4 files changed, 87 insertions, 0 deletions
diff --git a/sources/plugins/templates/templates/default.js b/sources/plugins/templates/templates/default.js new file mode 100644 index 00000000..a8edaec0 --- /dev/null +++ b/sources/plugins/templates/templates/default.js | |||
@@ -0,0 +1,87 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
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 | ||
9 | // templates. | ||
10 | imagesPath: CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ), | ||
11 | |||
12 | // The templates definitions. | ||
13 | templates: [ { | ||
14 | title: 'Image and Title', | ||
15 | image: 'template1.gif', | ||
16 | description: 'One main image with a title and text that surround the image.', | ||
17 | html: '<h3>' + | ||
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' + | ||
21 | '</h3>' + | ||
22 | '<p>' + | ||
23 | 'Type the text here' + | ||
24 | '</p>' | ||
25 | }, | ||
26 | { | ||
27 | title: 'Strange Template', | ||
28 | image: 'template2.gif', | ||
29 | description: 'A template that defines two colums, each one with a title, and some text.', | ||
30 | html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' + | ||
31 | '<tr>' + | ||
32 | '<td style="width:50%">' + | ||
33 | '<h3>Title 1</h3>' + | ||
34 | '</td>' + | ||
35 | '<td></td>' + | ||
36 | '<td style="width:50%">' + | ||
37 | '<h3>Title 2</h3>' + | ||
38 | '</td>' + | ||
39 | '</tr>' + | ||
40 | '<tr>' + | ||
41 | '<td>' + | ||
42 | 'Text 1' + | ||
43 | '</td>' + | ||
44 | '<td></td>' + | ||
45 | '<td>' + | ||
46 | 'Text 2' + | ||
47 | '</td>' + | ||
48 | '</tr>' + | ||
49 | '</table>' + | ||
50 | '<p>' + | ||
51 | 'More text goes here.' + | ||
52 | '</p>' | ||
53 | }, | ||
54 | { | ||
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%">' + | ||
59 | '<h3>' + | ||
60 | 'Title goes here' + | ||
61 | '</h3>' + | ||
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>' + | ||
65 | '</caption>' + | ||
66 | '<tr>' + | ||
67 | '<td> </td>' + | ||
68 | '<td> </td>' + | ||
69 | '<td> </td>' + | ||
70 | '</tr>' + | ||
71 | '<tr>' + | ||
72 | '<td> </td>' + | ||
73 | '<td> </td>' + | ||
74 | '<td> </td>' + | ||
75 | '</tr>' + | ||
76 | '<tr>' + | ||
77 | '<td> </td>' + | ||
78 | '<td> </td>' + | ||
79 | '<td> </td>' + | ||
80 | '</tr>' + | ||
81 | '</table>' + | ||
82 | '<p>' + | ||
83 | 'Type the text here' + | ||
84 | '</p>' + | ||
85 | '</div>' | ||
86 | } ] | ||
87 | } ); | ||
diff --git a/sources/plugins/templates/templates/images/template1.gif b/sources/plugins/templates/templates/images/template1.gif new file mode 100644 index 00000000..efdabbeb --- /dev/null +++ b/sources/plugins/templates/templates/images/template1.gif | |||
Binary files differ | |||
diff --git a/sources/plugins/templates/templates/images/template2.gif b/sources/plugins/templates/templates/images/template2.gif new file mode 100644 index 00000000..d1cebb3a --- /dev/null +++ b/sources/plugins/templates/templates/images/template2.gif | |||
Binary files differ | |||
diff --git a/sources/plugins/templates/templates/images/template3.gif b/sources/plugins/templates/templates/images/template3.gif new file mode 100644 index 00000000..db41cb4f --- /dev/null +++ b/sources/plugins/templates/templates/images/template3.gif | |||
Binary files differ | |||