Hello,
this is my first post so I hope this is the right forum. I am playing with the newest CKEditor and I found a nice plugin for adding templates ( / snippets) into the current editor.
I know the plugin is called 'templates' and I found the default.js where the example templates are defined.
My question: Is it possible to load own templates - not from the default.js?
I tried to add them by using CKEDITOR.addTemplates. But when I use the command somewhere in my source code, I get a javascript error that there is no function called "addTemplates".
So I tried to call it in the pluginsLoaded - event but there is no effect (and no error).
I know there is a second function called loadTemplates but I don't know how the content have to look like. (There is no example :o/ )
I hope you can help me and thank you in advance for your answers.
Hi everyone,
Hi everyone,
I tried it again and my current result is working (but I think it is not a clean method ).
I used the pluginsLoaded - Event and changed the CKEDITOR.config.templates_files directly.
Is this the correct proceed?