I've got a page where I'm using JavaScript to replace a page's InnerHtml with a form when a user clicks on a button to show a form. Basically it's a show/hide button and replacing the InnerHtml allows me to do that.
After the InnerHtml is replaced, I call ReplaceTextarea to change the form's text area to use the editor.
When I close the form by rewriting the InnerHtml without the form and then expand once again, the replace doesn't work. The area is replaced with a box and no buttons appear. I am unable to type in the box.
I tried creating a new instance of the editor each time and also only creating one as a global and reusing it. Neither case solves the problem. It never works the second time.
Any ideas?
After the InnerHtml is replaced, I call ReplaceTextarea to change the form's text area to use the editor.
When I close the form by rewriting the InnerHtml without the form and then expand once again, the replace doesn't work. The area is replaced with a box and no buttons appear. I am unable to type in the box.
I tried creating a new instance of the editor each time and also only creating one as a global and reusing it. Neither case solves the problem. It never works the second time.
Any ideas?