talisien 0 Newbie Poster

I'm trying to out figure how to insert automaticaly a template. when the editor is loaded.

<textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>

            <script type="text/javascript">
            //<![CDATA[

CKEDITOR.replace("editor1", {

    on :
    {
        instanceReady : function( ev )
        {
            insert = CKEDITOR.getTemplates('default'); // **getting the template to load**
           this.setData(insert.templates[0].html);
        }
    }

});

This should load the default template, but insert say's it's undefined.
Does anyone know how to do this?

Thanks, Leon