• Nimesh

    (@nimeshrathod1gmailcom)


    Hello Author,

    I am use latest version of tinyMCE,4.8.0
    My WordPress version : 4.9.8
    Enfold-child theme

    I just try to use tinyMCE option in one of my ajax call, which will open one form in popup.

    Even I have just try to initialise tinymce with code something like below in my ajax call:

    tinymce.init({selector: 'textarea'});

    but not get success.!

    I as all tinymce option are display but could not click it/use it

    getting below errors with console :

    VM1751:1 Uncaught TypeError: Cannot read property 'length' of undefined
        at substring (eval at limit (eval at <anonymous> (jquery.min.js:2)), <anonymous>:1:64)
        at init.limit (eval at <anonymous> (jquery.min.js:2), <anonymous>:27:4)
        at HTMLDocument.eval (eval at <anonymous> (jquery.min.js:2), <anonymous>:34:33)
        at n (eval at <anonymous> (jquery.min.js:2), <anonymous>:2:14784)
        at Object.fireWith (eval at <anonymous> (jquery.min.js:2), <anonymous>:2:15553)
        at ready (eval at <anonymous> (jquery.min.js:2), <anonymous>:2:9773)

    Also just for your info :
    as I have try to install old version of this plugin, it is working fine with default wp page, but not in my form.!

    I have not any cache plugin or issue in my site

    can you please help me for the same.

    • This topic was modified 6 years, 6 months ago by Nimesh.
    • This topic was modified 6 years, 6 months ago by Nimesh.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    Not sure what you’re trying to do exactly. You can load the init object from AJAX and initialize TinyMCE after the page has finished loading, but need to use an appropriate callback that will run after the response is available. Most likely you’re trying to initialize too early.

    Thread Starter Nimesh

    (@nimeshrathod1gmailcom)

    Hi,
    Sorry if I have confuse you.

    Let me try to explain more in detail :

    – I have one listing page of item in wordpress admin
    – Once I will be click on any item, it will open one popup with all item detail for edit, one textarea with tincyMCE will also there in my popup.

    Foe ex :

    wp_editor( $content, $editor_id , $settings = array( 'media_buttons' => false , 'editor_height'=> '100px' ));
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not open any tinyMCE dropdown/option’ is closed to new replies.