How to destroy tinymce completely?
        Posted  
        
            by powerboy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by powerboy
        
        
        
        Published on 2010-04-18T20:35:57Z
        Indexed on 
            2010/04/18
            20:43 UTC
        
        
        Read the original article
        Hit count: 1159
        
JavaScript
|tinymce
I am working on something like this:
On a webpage, there is an article wrapped in a DIV, an Edit button. When a user click on the Edit button, insert an textarea via javascript, load the html of the DIV into the textarea, load and initial tinymce. When the user click on the Save button, save and update the article via ajax, and destroy tinymce completely.
The problem is that, I failed to destroy tinymce completely. When the user click on the Edit button again, a new tinymce instance will load while the old instance is just hidden.
BTW, I am using the jQuery version of tinymce
© Stack Overflow or respective owner