By including the "template" you mention here in Javascript: [You must be registered and logged in to see this link.]
You're instantiating the new editor twice, which is a bad idea.
A copy of the editors instance is saved as data to the textarea, so you can get it with $('#text_editor_textarea').data('sceditor');
At least before instantiating it again you should destroy the old one using its 'destroy' method as to prevent any memory leaks or clashes.
Or, if you can in the template area, if you're able to remove Forumotions initiation then that would be even better. At least move it out of the document.ready function.
Just food for thought, because currently, including another initiation is a bad way of going about things.
You're instantiating the new editor twice, which is a bad idea.
A copy of the editors instance is saved as data to the textarea, so you can get it with $('#text_editor_textarea').data('sceditor');
At least before instantiating it again you should destroy the old one using its 'destroy' method as to prevent any memory leaks or clashes.
Or, if you can in the template area, if you're able to remove Forumotions initiation then that would be even better. At least move it out of the document.ready function.
Just food for thought, because currently, including another initiation is a bad way of going about things.