JS mendeteksi jika konten yang dapat diedit div kosong
if ($('#divThatYouCanWriteStuffIn').text().trim().length == 0) {
alert("empty");
}
Modern Mouse
if ($('#divThatYouCanWriteStuffIn').text().trim().length == 0) {
alert("empty");
}