Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter myvahid

    (@myvahid)

    The structure of ajax is something like this:

    function get_test_page(){
       include( TEMPLATEPATH . '/page.php' );
       die( main() );
    }
    add_action( 'wp_ajax_nopriv_get_test_page', 'get_test_page' );
    add_action( 'wp_ajax_get_test_page', 'get_test_page' );

    page.php :

    fucntion main(){
        wp_editor('','unique_id');
    }

    Editor is loaded but needed files is not loaded.

Viewing 1 replies (of 1 total)