WordPress uses TinyMCE, so there's an argument that these questions are relevant. However, the same can be said about JQuery. I don't see us being the place to go for JQuery questions.
Should we answer this question here? Or migrate it over to SO?
https://wordpress.stackexchange.com/questions/29758/how-do-i-use-the-tinymce-replace-method