WordPress.org

Forums

mqTranslate
[resolved] Visual Editor not working on WP 3.9.1 (24 posts)

  1. vertigofactory
    Member
    Posted 1 year ago #

    Hi there,
    I've just upgraded to WP 3.9.1 and to version 2.6.2.6 of mqtranslate and now I can't use the visual editor Tiny MCE when I try to write posts, custom posts and pages. When I try to switch to Visual it doesn't work.

    When I disable mqtranslate 2.6.2.6, the visual editor works correctly.

    If it could be useful, I used the Inspector on Chrome to watch what happens into the console when I try to switch to visual mode:

    Uncaught TypeError: Cannot set property 'setup' of undefined post-new.php?post_type=page:845
    
    qtrans_hook_on_tinyMCE post-new.php?post_type=page:845
    
    switchEditors.go post-new.php?post_type=page:925
    
    window.switchEditors.switchto editor.min.js?ver=3.9.1:1
    onclick post-new.php?post_type=page:685

    When the editor page is loaded I see this into the console:

    Uncaught TypeError: Cannot read property 'split' of undefined

    Any ideas? Thank you :)

    https://wordpress.org/plugins/mqtranslate/

  2. vertigofactory
    Member
    Posted 1 year ago #

    Also, I noticed that when I write something into the editor and I save, then the content disappear.

  3. loreboldo
    Member
    Posted 1 year ago #

    Hi everybody, same problem here:

    Also, I noticed that when I write something into the editor and I save, then the content disappear.

  4. baga
    Member
    Posted 1 year ago #

    Same problem with visual editor and 3.9.1. Hope someone can fix this issue.

  5. ovinz
    Member
    Posted 1 year ago #

    Same problem, the content is empty after saving.
    And when I use Advanced Custom Fields AND mqtranslate, there is an error in the console : Uncaught TypeError: Cannot read property 'value' of null.
    I got the javascript error only when I use the both plugin together.

    Hope this help

    WP 3.9.1
    MQTranslate : 2.6.2.6

  6. LeChou
    Member
    Posted 1 year ago #

    Hi everyone,

    I have a similar problem with the built-in visual editor of bbPress.
    When mqTranslate plugin is activated, the visual editor doesn't show.

    If anyone knows how to solve this, please let me know.

    Thank you.

    WP 3.9.1
    mqTranslate 2.6.2.6
    bbPress 2.5.3

  7. maxim1988
    Member
    Posted 1 year ago #

  8. baga
    Member
    Posted 1 year ago #

    Thanks Maxim,
    I'm gonna try it right now!

  9. baga
    Member
    Posted 1 year ago #

    Mmm doesn't work for me :(

  10. vertigofactory
    Member
    Posted 1 year ago #

    it doesn't work for me too :(
    anyway, thank you :)

  11. maxim1988
    Member
    Posted 1 year ago #

    Version of WP and other plugin? Version of browser and your OS
    Deactivate other plugin.
    Maby your theme use conflict js

  12. vertigofactory
    Member
    Posted 1 year ago #

    I am using:
    - Chrome 35.0.1916.114 on OSX Mavericks
    - WP 3.9.1, mqtranslate 2.6.2.6

    I am NOT using acf-qtranslate 1.3.0 and Advanced Custom Fields 4.3.8. Maybe your fix works well when using these plugins, I don't know.

    When I deactivate mqtranslate 2.6.2.6 everything works well.

  13. IreneWolk
    Member
    Posted 1 year ago #

    Hi,

    I also have Problems with the plugin and woocommerce. Visual editor is there in products, but not in product short description. Can't change there anything - it only shows texteditor and there is no way to change text.

    Worked well in WP 3.9 but not in WP 3.91.
    Please help - I really need to work with my products and need the product short description.

    Thank you
    Irene

  14. CreationToday.org
    Member
    Posted 1 year ago #

    This worked for us.

    Turned on Firefox inspector and for some reason WordPress is looking for the plugin.min.js (/wp-includes/js/tinymce/plugins/wordpress/plugin.min.js) in the root directory, so we just copied it over to the root directory.

    Hope this helps.

  15. vertigofactory
    Member
    Posted 1 year ago #

    @CreationToday.org: sorry, your fix doesn't work for me :(

  16. vertigofactory
    Member
    Posted 1 year ago #

    ok ok ok! I found a solution! :)

    there's a bug related to the WPfullscreen deactivation in mqtranslate_javascript.php, so you have just to comment like this (line 253, mqtranslate_javascript.php):

    // Removing WPFullscreen plugin and button
    /*var p = hook.plugins.split(',').filter(function(element) { return (element != 'wpfullscreen'); });
    hook.plugins = p.join(',');
    p = hook.toolbar1.split(',').filter(function(element) { return (element != 'wp_fullscreen'); });
    hook.toolbar1 = p.join(',');*/

    this works for me! :)

  17. baga
    Member
    Posted 1 year ago #

    @vertigofactory, your solution doesn't work for me unfortunately :(

  18. hdpixeldesign
    Member
    Posted 1 year ago #

    @vertigofactory your fix worked for me, Thank you, Much Appreciated mate

  19. elkiloprieto
    Member
    Posted 9 months ago #

    Thanks! @vertigofactory, you saved my day...
    I also used the previuos solution:
    http://wordpress.org/support/topic/adding-content-to-wysiwyg-dupes-in-native-wp-content-editor

    my conflict with the tinyMCE started with the team:
    -WP 3.9.1
    -ACF pro,
    -mqtranslate 2.7.1.1 and
    -ACF qtranslate fields plugin
    I have tried with the tinyMCE advanced and also works!

    Now is ok.

  20. crobertou
    Member
    Posted 9 months ago #

    Hello, i need your helpe my friends, i have the same problem:
    In my woocommerce Visual editor is there in products, but not in product short description. Can't change there anything - it only shows texteditor and there is no way to change text.

    Worked well in WP 4.0.

    Thanks!

    https://wordpress.org/support/topic/visual-editor-not-working-on-wp-391?replies=19#post-5654729

  21. littleviking
    Member
    Posted 8 months ago #

    Thanks! @vertigofactory you help me a lot but all this solution doesn't work for.

    My probleme is that the wysiwyg editor work but when I tried to save my english and french field it trigger "admin-ajax.php?loadSript" indefinitely and never save the post and I have to relad manually my page to stop that.

    After long hours of debugging I find this on ACF qtranslate plugin in input.js file line 13.

    // if a TinyMCE hasn't been initalize for this language then initalize it
    if (!parent.find('.current-language .mce-tinymce').length) {
        acf.do_action('ready', parent.parents('.acf-field'));
    }

    I have to comment this code to make it work but I can only right the default language because the second box not initiate. I search a lot but never find something about this function...

    I'm on :
    WP 4.0
    ACF Pro 5.0.9
    acf qtranslate 1.4
    and mqtranslate 2.7.1.1

    I have the same problème on WP 3.9.1
    I also used the previuos solution of @elkiloprieto but didn't change anything...

    Thanks for you help!

  22. fburatti
    Member
    Posted 7 months ago #

    This work form me!

  23. casm
    Member
    Posted 5 months ago #

    Hi,
    @vertigofactory, your solution doesn't work for me but I update the plugin mqtranslate to the version 2.9.1.2 and work.

  24. CreationToday.org
    Member
    Posted 5 months ago #

    Wow... this issue is still going on!?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • mqTranslate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic