// For the javascript for inserting template tags: initialise the default textarea to
// 'edit_template' - it is always present in all different possible views.
+
+ $editorobj = 'editor_'.md5('template');
+
$bodytag = 'onload="';
- $bodytag .= 'if (typeof(edit_template) != \'undefined\') { currEditor = edit_template; } ';
+ $bodytag .= 'if (typeof('.$editorobj.') != \'undefined\') { currEditor = '.$editorobj.'; } ';
$bodytag .= 'currTextarea = document.tempform.template;';
$bodytag .= '" ';