jhollingworth / bootstrap-wysihtml5

Simple, beautiful wysiwyg editor
http://jhollingworth.github.com/bootstrap-wysihtml5/
MIT License
4.15k stars 1.01k forks source link

Cannot clear the textarea's text / contents #352

Open chalu opened 9 years ago

chalu commented 9 years ago

Is there a way to clear the contents of the textarea ? my intuition is to use $('.textarea').val(''); but this has not worked, neither has $('.textarea').empty() worked.

archanavhire commented 9 years ago

You can do it by setHTML method. $(".selector").editable("setHTML", "", false);

marwen-cherif commented 9 years ago

I have the same problem

$(".selector").editable("setHTML", "", false);

does not work for me.