--- Webpacus/root/editor/editor.js 2005/11/26 18:18:10 163 +++ Webpacus/root/editor/editor.js 2005/11/26 20:21:49 164 @@ -57,7 +57,8 @@ Element.addClassName('a_template', 'tab_selected'); $('div_template').style.visibility = "visible"; Logger.debug("switched to template editor"); - $('template_content').focus(); + var c = $('template_content'); + if (c) c.focus(); return false; } @@ -67,7 +68,8 @@ Element.addClassName('a_css', 'tab_selected'); $('div_css').style.visibility = "visible"; Logger.debug("switched to CSS editor"); - $('css_content').focus(); + var c = $('css_content'); + if (c) c.focus(); return false; } @@ -138,6 +140,8 @@ // Position.clone('div_template', 'div_css'); + edit_template(); + // load css editor load_css();