Hi,
I read some topics like http://ckeditor.com/forums/CKEditor-3.x/how-can-load-template-defaultly,
http://stackoverflow.com/questions/12636696/ckeditor-template-loaded-from-ajax,
etc...
but noone solve these problems:
I copy templates from file: \plugins\templates\templates\default.js and I rename this copy to default2.js and edit this new file
default2.js :
CKEDITOR.addTemplates("default2", { ...
and change root CKeditor file:
templates_files: ['plugins/templates/templates/default.js', 'plugins/templates/templates/default2.js'], CK editor takes templates only from last element of array, where is an problem? second question: I would like to load any template when page is loaded. I use this code but it is not working.
CKEDITOR.replace("
editor1", { on:{ instanceReady : function(ev) { insert = CKEDITOR.getTemplates('default2'); this.setData(insert.templates[0].html); } }, });
Coud anybody help me, please? Thanks a lot.