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:
bbPress Threaded Replies: 0.4.1
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
- The topic ‘[Plugin: bbPress Threaded Replies] Cannot edit text box issue on buddypress – and a probable fix’ is closed to new replies.