From 7adcb81e4f83f98c468889aaa5a85558ba88c770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 25 Jan 2016 17:45:33 +0100 Subject: Initial commit --- sources/plugins/templates/templates/default.js | 87 +++++++++++++++++++++ .../templates/templates/images/template1.gif | Bin 0 -> 375 bytes .../templates/templates/images/template2.gif | Bin 0 -> 333 bytes .../templates/templates/images/template3.gif | Bin 0 -> 422 bytes 4 files changed, 87 insertions(+) create mode 100644 sources/plugins/templates/templates/default.js create mode 100644 sources/plugins/templates/templates/images/template1.gif create mode 100644 sources/plugins/templates/templates/images/template2.gif create mode 100644 sources/plugins/templates/templates/images/template3.gif (limited to 'sources/plugins/templates/templates') 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 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +// Register a templates definition set named "default". +CKEDITOR.addTemplates( 'default', { + // The name of sub folder which hold the shortcut preview images of the + // templates. + imagesPath: CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ), + + // The templates definitions. + templates: [ { + title: 'Image and Title', + image: 'template1.gif', + description: 'One main image with a title and text that surround the image.', + html: '

' + + // Use src=" " so image is not filtered out by the editor as incorrect (src is required). + '' + + 'Type the title here' + + '

' + + '

' + + 'Type the text here' + + '

' + }, + { + title: 'Strange Template', + image: 'template2.gif', + description: 'A template that defines two colums, each one with a title, and some text.', + html: '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '
' + + '

Title 1

' + + '
' + + '

Title 2

' + + '
' + + 'Text 1' + + '' + + 'Text 2' + + '
' + + '

' + + 'More text goes here.' + + '

' + }, + { + title: 'Text and Table', + image: 'template3.gif', + description: 'A title with some text and a table.', + html: '
' + + '

' + + 'Title goes here' + + '

' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '' + + '
' + + 'Table title' + + '
   
   
   
' + + '

' + + 'Type the text here' + + '

' + + '
' + } ] +} ); 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 Binary files /dev/null and b/sources/plugins/templates/templates/images/template1.gif 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 Binary files /dev/null and b/sources/plugins/templates/templates/images/template2.gif 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 Binary files /dev/null and b/sources/plugins/templates/templates/images/template3.gif differ -- cgit v1.2.3