Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Reply threading not working in Internet Explorer

@kineta

Participant

If you look at a javascript debugger are you getting a console error that reads something like “Failed to execute ‘insertBefore’ on ‘Node’” (I can’t remember the exact text)?

If not then it’s probably a different issue than what I was dealing with.

If you’re getting that error, it’s because a function in bbPress is trying to move the TinyMCE editor. Since the above code is an overwrite of the addReply.moveForm function, it needs to be loaded after the bbPress script. Because my example is using jquery you might need to make sure it’s in the right place for that. I’m not sure, you might need to change the $ to ‘jQuery’. Or write the code to use vanilla javascript. I have my .js file set up for jquery, following the Twentysixteen theme: everything is between:

( function($) {	
$(document).ready(function() {	

   // all the javascript goes here...

})
})
Skip to toolbar