Templates source code and configuration Solved

User's avatar
Mikael H.
17:56 Mar 20, 2014
I just purchased your templates add-on for ckeditor. I intended to learn how to implement templates in CKEditor. I just found it is obfuscated. Question 1 is : can I get its source code? Question 2 is how do I make it work.

I have already copied all files into /plugins/ and add the following configuration in config.js:
CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	config.extraPlugins = '...,panelbutton,floatpanel,doksoft_templates,...';
	config.toolbar_name = [ ... [ 'doksoft_templater'] ...];
};

But I can not see its icon in toolbar?

Thanks,
Jimmy
Support team avatar
JS+
21:24 Mar 20, 2014
Hello,

Source code is not available like in other commercial products.
But in fact you do not need it and I'll help you to configure it.

Your problem is that you have mistakes in notation in `config.js`:

1. Do not use "..." in `extraPlugins`. This dots are only for example that you can have any other plugins there. Use:
config.extraPlugins = '...,panelbutton,floatpanel,doksoft_templates,...';

2. And the same for toolbar. In any case I very recommend you CKEditor's documentation about how to build your own custom toolbar:
docs.ckeditor.com/#!/guide/dev_toolbar

For example if you want to get toolbar with only one button (DOKSoft plugin), use this code:
config.toolbar = [['doksoft_templater']];

But if you want to have standard CKEditor's toolbar with DOKSoft Templates plugin you can add there any standard buttons. See CKEditor's official site please: there are many example how to define toolbar of any configuration you want (basic/advanced buttons set or something other).