GD bbPress Tools
[resolved] Quote functionality broken in WP 3.9 and GD BBp 1.5.1 (10 posts)

  1. BasG
    Posted 2 years ago #

    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="https://dl.dropboxusercontent.com/u/1941468/picdump/ssquote1.jpg">

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

    <img src="https://dl.dropboxusercontent.com/u/1941468/picdump/sserror1.jpg">

    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


  2. tza79
    Posted 1 year ago #

    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);

  3. Malle
    Posted 1 year ago #


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

  4. pathuri
    Posted 1 year ago #

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

  5. Malle
    Posted 1 year ago #

    should be in gd-bbpress-tools.js

  6. Daniel J. Lewis
    Posted 1 year ago #

    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?

  7. Photonica
    Posted 1 year ago #

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

  8. Fenix01
    Posted 1 year ago #

    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);
  9. Daniel J. Lewis
    Posted 1 year ago #

    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).

  10. Milan Petrovic
    Plugin Author

    Posted 1 year ago #

    Plugin is updated to fix the issue with new TinyMCE.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GD bbPress Tools
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.