jquery proper call back function for text editor

jquery proper call back function for text editor

I have 2 pages: page 1 is a normal page and page 2 is a partialview ( partial 2). I go to page 1 and a few seconds later partial 2 is loaded and shown at the bottom of page 1, my problem is that I need to know how to do a callback function in order to get my text editor that is in partial 2 for example this is the setup for page 1
  1. Page 1
  2.   <script type="text/javascript" src="/ckeditor/ckeditor.js" ></script>
            <script>
                $(document).ready(function () {

                
        
                    $('#partial2').trigger('submit') ;
                });
        </script>







As you can see the ckeditor file is what turns any textbox into a text-editor and partial2 is automatically loaded after document is ready but by that time it is too late and I get a regular textbox instead of a text editor how can I do a callback function to fix that..

This is the textbox in my partial2

  1. <input type="text" class="ckeditor" />

I know that everything works because if I put that same textbox on page1 I get the text editor; any help would be great .