Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
This option lets you specify a predefined list of templates to be inserted. Each item in the list can either be inline using a content property or a whole file using the url property see the example below for details.
tinymce.init({
plugins: "template",
templates: [
{title: 'Some title 1', description: 'Some desc 1', content: 'My content'},
{title: 'Some title 2', description: 'Some desc 2', url: 'development.html'}
]
});
tinymce.init({
plugins: "template",
templates: "/dir/templates.php"
});
[
{"title": "Some title 1", "description": "Some desc 1", "content": "My content"},
{"title": "Some title 2", "description": "Some desc 2", "url": "development.html"}
]