X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_source/plugins/templates/templates/default.js diff --git a/skins/ckeditor/_source/plugins/templates/templates/default.js b/skins/ckeditor/_source/plugins/templates/templates/default.js new file mode 100644 index 0000000..cf91e85 --- /dev/null +++ b/skins/ckeditor/_source/plugins/templates/templates/default.js @@ -0,0 +1,94 @@ +/* +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html 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: + '

' + + '' + + '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' + + '

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