Hi there, for the last few hours i have been trying to add a Template to CKfinder v3.1 but seem to be hitting a stumbling block, the template i wish to add is called 'simply' this block of code is added to config.js
// TEMPLATES //
config.templates_files = [ 'simply.js' ];
// E of TEMPLATES //
and the file 'simply.js' is located at CKeditor/ which i believe is correct if im understading this page http://docs.cksource.com/CKEditor_3.x/D ... /Templates correctly, when i run the editor and click the templates icon i just get an empty pop-up box, when i comment out the line of config.templates_files = [ 'simply.js' ]; and run the editor again i get the pop-up with default templates contents.
Do i also have to alter the plugin.js in the templates folder?
i have tried a few times by editing this code
/**
* The list of templates definition files to load.
* @type (String) Array
* @default [ 'plugins/templates/templates/default.js' ]
* @example
* config.templates_files =
* [
* '/editor_templates/site_default.js',
* 'http://www.example.com/user_templates.js
* ];
*
*/
CKEDITOR.config.templates_files =
[
CKEDITOR.getUrl(
'_source/' + // @Packager.RemoveLine
'simply.js' ) <<<<<<<< Changing this line from its default location to simply.js
];
Sat, 02/13/2010 - 14:31
#1
Re: Adding a template......