if contenteditable div empty js code example
Example: js detect if content editable div is empty
if ($('#divThatYouCanWriteStuffIn').text().trim().length == 0) {
alert("empty");
}
if ($('#divThatYouCanWriteStuffIn').text().trim().length == 0) {
alert("empty");
}