X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Flibraries%2Ftemplates%2Ftemplates%2Fdefault.js;fp=web%2Flibraries%2Ftemplates%2Ftemplates%2Fdefault.js;h=7624cadf7154498b7bc17aed5e1ac44ebb37f751;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/libraries/templates/templates/default.js b/web/libraries/templates/templates/default.js new file mode 100644 index 000000000..7624cadf7 --- /dev/null +++ b/web/libraries/templates/templates/default.js @@ -0,0 +1,87 @@ +/** + * @license Copyright (c) 2003-2017, 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 columns, 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' + + '

' + + '
' + } ] +} );