It works:
$('.redactor_editor').html('');
You just need to bind this to the onclick event, for example:
$('.clear_editor').click(function () { $('.redactor_editor').html(''); });
The above description will clear the text area of ββthe editor when you click on an element with the class .clear_editor
In case you use Angular and [(froalaModel)], you need to set the string passed to froalaModel as undefined instead of ''
source share