jhollingworth / bootstrap-wysihtml5

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

Cannot clear the textarea's text / contents #352

Open chalu opened 10 years ago

chalu commented 10 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 10 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.