Index: openacs-4/packages/xowiki/www/resources/ck_templates.js
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/ck_templates.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/xowiki/www/resources/ck_templates.js 21 Feb 2012 13:11:53 -0000 1.1
@@ -0,0 +1,141 @@
+/*
+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' +
+ '
' +
+ '
'
+ }
+ ]
+});
+
+
+// Register a templates definition set named "interactions".
+CKEDITOR.addTemplates( 'interactions',
+{
+ // The name of sub folder which hold the shortcut preview images of the
+ // templates.
+ imagesPath : CKEDITOR.getUrl( '/resources/xowiki/images/' ),
+
+ // The templates definitions.
+ templates :
+ [
+ {
+ title: 'Simple Open Text Question',
+ image: '1answer.png',
+ description: 'Question with a text and a single answer field.',
+ html:
+ ''
+ },
+ {
+ title: 'Open Text question consisting of three parts',
+ image: '2answers.png',
+ description: 'Question with a introductory text and three subquestions.',
+ html:
+ ''
+
+ }
+ ]
+});
\ No newline at end of file
Index: openacs-4/packages/xowiki/www/resources/images/1answer.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/images/1answer.png,v
diff -u
Binary files differ
Index: openacs-4/packages/xowiki/www/resources/images/2answers.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/images/2answers.png,v
diff -u
Binary files differ