Viewing 9 replies - 1 through 9 (of 9 total)
  • I am having the same issue. Although, the quote button works if you only use the raw text textarea. If you enable the Visual tab (I used bbPress Enable TinyMCE Visual Tab for this) then it doesn’t work and gives a Javascript error:

    Uncaught TypeError: undefined is not a function
    gd-bbpress-tools.js?ver=1.5.1_b1338_free:43

    For this line:
    tinyMCE.execInstanceCommand(“bbp_reply_content”, “mceInsertContent”, false, qout);

    https://stackoverflow.com/a/23202793

    /* get the TinyMCE version to account for API diffs */
    var tmce_ver=window.tinyMCE.majorVersion;

    if (tmce_ver>=”4″) {
    window.tinyMCE.execCommand(‘mceInsertContent’, false, tagtext);
    } else {
    window.tinyMCE.execInstanceCommand(‘content’, ‘mceInsertContent’, false, tagtext);
    }

    Big Quotes to: Scott B

    This works for me-

    Can I know in which file this to be added.
    I tried to add theme’s functions.php file, it is giving 500 error.

    should be in gd-bbpress-tools.js

    Thanks for this code, but I must be placing it in the wrong place inside the JS file. Where should it go or what should it replace?

    My quote link doesn’t work, please can anybody fix this?

    Hi Guys !

    I solve the problem and thx to male for the tip.

    patch for wordpress 3.9.1 :

    locate /wp-content/plugins/gd-bbpress-tools/js/gd-bbpress-tools.js

    replace

    tinyMCE.execInstanceCommand("bbp_reply_content", "mceInsertContent", false, qout);

    by

    if (tinyMCE.majorVersion>="4") {
    tinyMCE.execCommand('mceInsertContent', false, qout);
    }
    else {
    tinyMCE.execInstanceCommand("bbp_reply_content", "mceInsertContent", false, qout);
    }

    That worked! Thanks Fenix01!

    But caching can get in the way of this. So here are two extra steps.

    Open /wp-content/plugins/gd-bbpress-tools/ and replace line 5:

    'version' => '1.5.1',

    with:

    'version' => '1.5.1b',

    After you save and upload, refresh your site cache plugin (if you have one).

    Plugin Author Milan Petrovic

    (@gdragon)

    Plugin is updated to fix the issue with new TinyMCE.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Quote functionality broken in WP 3.9 and GD BBp 1.5.1’ is closed to new replies.