diff -r 902822492a68 -r fe660c52c48f includes/clientside/tinymce/plugins/template/jscripts/template.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/includes/clientside/tinymce/plugins/template/jscripts/template.js Wed Jun 13 16:07:17 2007 -0400
@@ -0,0 +1,143 @@
+// Import external list url javascript
+var url = tinyMCE.getParam("template_external_list_url");
+if (url != null) {
+ // Fix relative
+ if (url.charAt(0) != '/' && url.indexOf('://') == -1)
+ url = tinyMCE.documentBasePath + "/" + url;
+
+ document.write('');
+}
+
+var TPU = { //Template Popup Utils
+ currentTemplateHTML : null,
+ templates : [],
+ inst : tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')),
+ plugin : tinyMCE.getWindowArg('pluginObj'),
+ data : tinyMCE.selectedInstance.getData('template'),
+
+ init : function() {
+ document.forms[0].insert.value = tinyMCE.getLang('lang_' + this.data.currentAction, 'Insert', true);
+ TPU.loadTemplatePaths();
+
+ if (this.data.currentAction == "update")
+ document.getElementById('warning').innerHTML = tinyMCE.getLang('lang_template_warning');
+
+ this.resizeInputs();
+ },
+
+ loadTemplatePaths : function() {
+ var tsrc, sel, x, u;
+
+ tsrc = tinyMCE.getParam("template_templates", false);
+ sel = document.getElementById('tpath');
+
+ // Setup external template list
+ if (!tsrc && typeof(tinyMCETemplateList) != 'undefined') {
+ for (x=0, tsrc = []; x' +
+ 'blank_page' +
+ '' +
+ '' +
+ '' +
+ this.currentTemplateHTML +
+ '' +
+ '