Felix,
I did include templates in our editor at get-simple.de and it works
I think I once described how to do it,
in the custom config-file I activated the template-plugin
Code:
CKEDITOR.editorConfig = function( config )
{
.....
config.extraPlugins = 'fileicon,video,syntaxhighlight','templates',
...
};
in /admin/template/js/ckeditor/plugins/templates/templates/default.js I defined like this:
Code:
// Register a template definition set named "default".
CKEDITOR.addTemplates( 'default',
{
// The name of the subfolder that contains the preview images of the templates.
imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
// Template definitions.
templates :
[
{
title: 'Hinweis',
image: 'lightbulb.gif',
description: 'Hinweis mit Glühbirne',
html:
'<p class="hinweis"><strong>' + '<img alt="enlightened" class="ohne-border" height="20" src="http://www.get-simple.de/...../lightbulb.gif" title="enlightened" width="20" /> Hinweis</strong>: Überschreibe diesenText.' + '</p>'
},
{
title: 'In der Presse',
image: 'newspaper.png',
description: 'Für die Presseliste',
html:
'<H2>ÜberschreibediesenTextmitTitel</h2>' + '<p>LinkzuArtikel</p>'
},
{
title: 'DefinitionList',
image: 'definitionlist.gif',
description: 'Zum Erzeugen von Definition-Listen.',
html:
'<dl>' + '<dt>Begriff' + '<dd>Erklärung</dd>' + '</dl>'
},
{
title: 'Definitionlisten-Eintrag',
image: 'definitionlist.gif',
description: 'Um weitere Definitionen einzufügen',
html:
'<dt>nochein Begriff' +
'<dd>noch eine Erklärung</dd' + '</dt>'
}
]
});
and it works
Code:
{
title: ' ',
image: ' .',
description: '',
html:
' '</p>'
},
defines one template