Quote from: Roberto at Apr 07, 2010, 04:05 AM
has anyone adapted the solutions for tinymce templates to be compatible with the new tinymce version shipped with the 1.0.3 installation?
just to know, if anyone did it I can save time, otherwise I’ll do it.
First time for me using tinymce templates, and ..

Dunno if my solution got anything to do with topic here, but my problem was "url" variable in
/assets/plugins/tinymce/jscripts/tiny_mce/plugins/template/js/template.js
I guess its a bug in tinymce, cos "url" does not get anything from this line:
var url = tinyMCEPopup.getParam("template_external_list_url");
No matter what was replaced with
template_external_list_url
..so i had to do this:
After this line:
var url = tinyMCEPopup.getParam("template_external_list_url");
i had to add couple lines:
tempUrl = "http://www.domain.com/assets/plugins/tinymce/jscripts/tiny_mce/plugins/template/";
url = tempUrl + "js/template_list.js";
and template_list.js looks like this:
var tinyMCETemplateList = [
// Name, URL, Description
["Simple snippet", tempUrl + "templates/snippet1.htm", "Simple HTML snippet."],
["Layout", tempUrl + "templates/layout1.htm", "HTML Layout."]
];
(my tinymce templates are in "assets/plugins/tinymce/jscripts/tiny_mce/plugins/template/templates")