Support » Plugin: GD bbPress Tools » Quote functionality broken in WP 3.9 and GD BBp 1.5.1

  • Resolved BasG


    After the recent update to WP 3.9 I seem to have lost the functionality of the quote button. Clicking it simply does nothing.

    <img src=””>

    I get an error in firebug console “TypeError: tinyMCE.execInstanceCommand is not a function” on line 43 of “gd-bbpress-tools.js”

    <img src=””>

    in the code section [if (gdbbPressToolsInit.wp_editor == 1 && !jQuery(“#bbp_reply_content”).is(“:visible”)) {
    tinyMCE.execInstanceCommand(“bbp_reply_content”, “mceInsertContent”, false, qout); ]

    GD bbPress Tools 1.5.1
    BuddyPress 2.0
    WordPress 3.9

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

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

    /* 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


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


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


    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',


    'version' => '1.5.1b',

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

    Plugin Author Milan Petrovic


    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.