Reset TinyMCE box

From the TinyMCE jQuery Plugin documentation, can be easily found from the page you linked:

// Will change the contents of an textarea with the ID "someeditor"
$('#someeditor').html('Some contents...');

// Will change the contents all text areas with the class tinymce
$('textarea.tinymce').html('Some contents...');

// Gets the contents from a specific editor
alert($('#someeditor').html());

Try setting it to empty string, might be just what you need.


This can be easily done (no need to use the slow jQuery tinymce build) using the following code as onclick-action of your button:

// 'content' is tinymce default,
// but if your textarea got an ID that is the one you need!
var my_editor_id = 'content';

// set the content empty
tinymce.get(my_editor_id).setContent('');