• I try to use wp_editor() in content that was loaded with ajax, but none of the required files and some other configuration script not loaded :

    https://.../wp-includes/js/tinymce/wp-tinymce.php
    https://.../wp-includes/js/tinymce/skins/lightgray/skin.min.css
    https://.../wp-admin/load-scripts.php?c=1&load%5B%5D=...mce-view,imgareaselect,image-edit,word-count,editor,quicktags,wplink,thick..
    https://.../wp-includes/js/tinymce/langs/{}.js

    Some related post but doesn’t help me :
    use wordpress wp_editor in dynamic/ajax html

    How to load wp_editor() through AJAX/jQuery

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)
  • The topic ‘wp_editor() in content that was loaded with ajax’ is closed to new replies.