summernote 编辑器取值判断是否为空的isEmpty官方
2018-12-05 本文已影响0人
microheng
var code = $('#summernote').code(),
filteredContent = $(code).text().replace(/\s+/g, '');
if(filteredContent.length > 0) {
// content is not empty
} else {
// content is empty
}
summernote 编辑器取值判断是否为空的isEmpty官方的方法不起作用的解决办法