bbPress Threaded Replies
[resolved] Cannot edit text box issue on buddypress - and a probable fix (3 posts)

  1. cosmic_invaders
    Posted 3 years ago #

    Hello all,

    I was testing the threaded replies for bbPress on my buddypress site.

    The issue we encountered was:
    As soon as the user clicks on "Reply" link, the comments editor become unusable. I can no longer click on the comment box. TinyMCE editor just wouldn't get focus at all.
    The only way to add any comment was by switching from Visual to HTML mode.

    I noticed this issue on IE9, Chrome.

    Here is my setup:

    WP: 3.4.2
    Buddypress: 1.6.1
    bbPress: 2.1.2
    bbPress Threaded Replies: 0.4.1

    Possible solution:
    I would appreciate the plugin developer / other developers comments on whether the fix is correct.... Thanks!

    After some googling (if thats even a verb) & digging through the code, here is what I found -

    When the threaded reply plugin moves the comment box, the tinymce editor needs to be re-created. I have provided the reference for this theory in a link i came across later.

    So adapting the theory from there -
    Added the remove tinymce comment box instance in moveForm and also the cancel.onclick event.
    Add it back as the last step in both moveForm and cancel.onclick event

    All the changes were only in the js/bbpress-threaded-replies.js file:

    You can access the update file from pastebin:

    Make sure to use the IDs "bbp_reply_content" in the remove and re-create function.

    Also there is a reference to 'comment' div id (t.I('comment').focus();) - I had to change 'comment' to 'bbp_reply_content' since that appears to be the correct ID for the buddypress platform atleast?

    There is an old there here which was my reference for the fix -

    Hope this helps others out there having similar issue



  2. Jennifer M. Dodd
    Plugin Author

    Posted 3 years ago #

    Fix works for me. I can do a version bump this afternoon.

  3. Jennifer M. Dodd
    Plugin Author

    Posted 3 years ago #

    Fixed in 0.4.2. Thanks, cosmic_invaders!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • bbPress Threaded Replies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.